Tim Thumb Cache Control
Looking for a bit of advice. I have quite heavily used timthumb on my new website to control image sizes.
Every time an image is requested in a specific size it is cached and that image is saved in the cache folder on the server for future requests of that image to be delivered from. Correct? How long will this cache last for?
I ask because, my site is running quite slow while each of those cached image files is being created. Once a the images for a page has been cached the page reloads nice and quick. When each of these cached images is created will they last forever or will they have to be recreated at some point?
I basically want that image to last forever, once it has been cached.
If the cache only has a certain life span, could I write a script which prints to screen the html <img> tag generate all the tim thumb thumbnails in order to re-create the cache. Then have this script run on a cron job. Would the cron actually generate the cache even though nothing is rendered in a browser?
- The topic ‘Tim Thumb Cache Control’ is closed to new replies.