oseawey / timthumb

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

Adding Criteria to check for available cache #181

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.running 
http://www.burnerbyte.com/wp-content/themes/DeepFocus/timthumb.php?src=http://ww
w.burnerbyte.com/wp-content/uploads/2010/12/IMG_5645-copy.jpg&h=185&w=18
5&zc=1&q=90
for example.

What is the expected output? What do you see instead?
I would like to have the engine to use previously generated image rather than 
regenerate a new one

What version of the product are you using? On what operating system?
saw this in my script 
define ('VERSION', '1.15');                 // version number (to force a cache refresh)

Please provide any additional information below.
Thanks for providing this code and enable me to generate any image size on the 
fly and enhance user experience for transfering much smaller image over to the 
browser.
However, the common issue face is that the image generation into the cache will 
be hogging up the CPU resources. Is there a solution to check for the image 
available in the cache before generating? Cos the image that i use is all the 
time the same and by reuse the image will save alot of CPU resources as I will 
only need to generate this 1 time and use this multiple time.

Thanks.

Hope that I able to get help from this brilliant team ^_^

Original issue reported on code.google.com by bytesur...@gmail.com on 22 Apr 2011 at 12:04

GoogleCodeExporter commented 9 years ago
TimThumb already caches files. Please update to the latest version as it has 
lots of improvements and optimisations.

Original comment by BinaryMoon on 24 Apr 2011 at 11:38