Thread: PhpThumb
View Single Post
  #1 (permalink)  
Old 07-04-06, 04:41 AM
eddyvlad eddyvlad is offline
Wannabe Coder
 
Join Date: Sep 2003
Location: In The Bloody Pits Of Hell
Posts: 160
Thanks: 2
Thanked 0 Times in 0 Posts
PhpThumb

Does anyone know how to use phpThumb?

I have a problem with the cache. When I replace an image with the same name and settings, my browser or maybe phpThumb will load the cached image instead of the new one.

I need to know how to delete a particular cache so that whenever I delete an image, I will also delete it's cache. Seems like the cached image name is hashed. I have no idea how to regenerate the hash.

For example, if I make an image :-
phpThumb.php?src=uploads/0018.jpg&wl=128&hp=128
It will generate a cache :-
phpThumb_cache_localhost_src9a75e89a946fe8806c4d99 765ef5e75d_par8ef1fff75b634c96b07a379e91bdfd22_dat 1152005649.jpeg

So, when I delete the image, I want to delete it's cached image as well but how do I get the hashed parameter?
__________________
Mr. Brown Eyes
Reply With Quote