ZenphotoCMS Forum
printCustomSizedImageMaxSpace 301 redirect slow - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: printCustomSizedImageMaxSpace 301 redirect slow (/thread-12087.html)



printCustomSizedImageMaxSpace 301 redirect slow - otterslide - 2015-01-13

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!




printCustomSizedImageMaxSpace 301 redirect slow - acrylian - 2015-01-13

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.