zenphoto forums » General Zenphoto Discussion

Image redirects from jpgs

(3 posts)
  1. Nezzy

    Member
    Joined: Apr '16
    Posts: 10

    While page load speed analysis, the result showed that the index.php and album.php page (NOT image) images are being redirected:
    I.E. redirect from GTmetrix for an album image:

    http://domain/zen-folder/zp-core/i.php?a=folder&i=DSC_0019%20%287%29.jpg&cw=0&ch=0&q=75&t=1&wmk=%21&check=eb5aa331de8cfa9b75b97bfb1df05ce8ad5eb2f7
    to
    http://domain/zen-folder/albums/folder/DSC_0019%20%287%29.jpg

    Is this suppose to occur? If not, any idea what the cause may be? I have added my own theme. just looking for a place to start the search....

    Zenphoto 1.4.14 is the version i'm using

    Thank you
    N.

    Posted 1 month ago #
  2. Nezzy

    Member
    Joined: Apr '16
    Posts: 10

    correction:
    (NOT image.php)

    Posted 1 month ago #
  3. Zenphoto development team
    acrylian

    Zenphoto team
    Joined: Jul '07
    Posts: 16,766

    Yes, that url is the correct url to the image processor (which i.php is) to generate the cached versions of resized and/or cropped images. It appears only once until the image is created.

    More about how caching works in Zenphoto here: http://www.zenphoto.org/news/caching/

    These urls on your site probably come from album thumbs being set to random. So the image changes every time and if you have a lot of images in those albums you most likey always get an yet unprocessed one. So solution is to set a static album thumb on each album edit page or use the cacheManager to pre-cache (the theme used must be setup correctly if it uses custom sizes).

    Don't forget to read the Forum rules and usage resources
    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.