oseawey / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

More images in Cache Folder than in Default Cache Size Setting #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We just upgraded from version 1.14 to 1.19 and the old timthumb.php script had 
the Cache_Size set at 500. We have the new one at the default 250. However, in 
our FTP cache folder, it shows 1,252 images, all but 2 or 3 were written today 
(the other 3 written yesterday)

Should I delete all the images in the cache folder to start fresh so only 250 
get written, or will that delete all the images from the site? Please help.

What version of the product are you using? On what operating system?
define ('VERSION', '1.19'); Mac OSX / Safari Browser

Please provide any additional information below.

Original issue reported on code.google.com by Linnymu...@gmail.com on 10 Dec 2010 at 2:57

GoogleCodeExporter commented 9 years ago
Hi - this isn't a bug however I will answer it anyway :)

Just empty the cache directory. It won't break anything. The cache files will 
simply be recreated once more.

Original comment by BinaryMoon on 10 Dec 2010 at 12:59

GoogleCodeExporter commented 9 years ago
Thank you for the reply.

However, I logged in today and now my cache folder shows 2,500 images. (It has 
doubled since yesterday....so even if I had deleted all of them, it still 
already created an extra 1,200 from last time I checked.) 

So it seems as if the cache limit of 250 is not working. Is there somewhere 
else I have to add the script or do to make it only hold 250 in this folder?

Original comment by Linnymu...@gmail.com on 10 Dec 2010 at 8:34

GoogleCodeExporter commented 9 years ago
have the same problem in the folder is accumulated very large amounts of cache 
files are not deleted, only replenished ...

define ('CACHE_SIZE', 1000);
define ('CACHE_CLEAR', 20);

I now have 22,698 files in the cache =(

Original comment by xjiopka on 29 Apr 2011 at 3:03