update specific range of intermediate images update specific range of intermediate images
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

update specific range of intermediate images

Started by garypoet, November 24, 2011, 06:41:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garypoet

hi, i deleted all my intermediate images to free up disk space, and now can rebuild them. but as i have around 7000 images my webhost has a cpu limit which is hit when recreating the intermediates up to around the first 3000.

when the daily cpu limit is reset they have to be rebuilt from the beginning again as i cannot specify to start from where it left off before - so i never reach the end! is it possible to only update a range of intermediate images (eg. the next 3000?)

thanks in advance.

Αndré

The most easiest way may be to re-create them album per album. Depending on the number of albums that may be an annoying task.

If you want to re-create all files, but want to start at file 3000, open util.php, find
$startpic = 0;
and replace with
$startpic = 3000;
inside the update_thumbs function.


It would also be possible to adjust the URL in the address bar of your browser. It will show something like
Quoteutil.php?numpics=25&startpic=50&albumid=0&autorefresh=1&action=update_thumbs&updatetype=5&form_token=ea3576b6d9113d5ad318d20eeed15006&timestamp=1322219411#admin_tool_thumb_update
But as you need a working form_token / timestamp combination, it's a more tricky part than simply editing the above mentioned file.

garypoet

thanks very much! it seems too work well - the images are updated although the file count doesn't quite match the appropriate images - but tweaking the numbers gets you there.

much appreciated.  :)

Αndré

Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.