printCustomSizedImageMaxSpace 301 redirect slow

Hello,

I'm trying to get a image to resize within a certain space for a slider.
It's working, but I'm using
printCustomSizedImageMaxSpace(gettext('Album'), 900, 450);

This returns a URL that ends with i.php? which returns a 301 redirect to a cache image.. however, this is happening very slowly.. for some reason it takes 3-4 seconds. Is there any way to get the cache URL directly?? Or any idea why it would be slow?

Thanks for any help!

Comments

  • acrylian Administrator, Developer
    Images are served from the cache once they are created. Which happens after the first access. Reload the page and take a look again. If you still see an `i.php` url in the source code check if the cache dir is writable and there are no other errors in your logs.

    Also if you use the static html cache plugin clear the cache and make sure all images are created before you re-enable it. It caches the pages regardless of the image cache.
Sign In or Register to comment.