Disable cache image links ?

Hi,
The title might not really be self explanatory, so here is my problem : when I want to display an image in a forum, blog post or anything else, I use the getCustomSizedImageMaxSpace() function.
The problem is : if this function find a correct cache image, it returns a link to that file. But if you clear your cache, you completely break this image.

So, I'd like to know if there is an equivalent of getCustomSizedImageMaxSpace(), only it will always return a link generating the cache image ?

Comments

  • acrylian Administrator, Developer
    No, as "sized" images are always fetched from the cache. Only alternative is the full image link or setting the image details directly via url using i.php (see top of the file).
  • Citron Member
    Yop, thanks for the reply. I already used i.php, but I hoped maybe I didn't see a function that does what I want.

    I have a question though : I opened i.php, but I'm not so good in php, and I'm not sure of something : If I use i.php to generate an image. Then I re-use i.php to generate the exact same image (same dimension, etc.)
    What happens ? The image is re-created ? Or does i.php detect that it already exists, and does nothing ?
  • If the file already exists in the cache it will be used. Otherwise it will be generated.
Sign In or Register to comment.