Grand Flagallery - Photo Gallery Plugin
[resolved] Force reload of images on viewing of gallery (6 posts)

  1. pmeswani
    Posted 2 years ago #


    I sometimes need to update my gallery and it isn't easy / convenient to tell my visitors to keep on deleting their Temp Internet Files in order to view the new content. Is there a way of forcing a refresh of the gallery upon each new visit?



  2. Rattus
    Plugin Author

    Posted 2 years ago #

    you can add this code in page template (in header.php):

    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
  3. pmeswani
    Posted 2 years ago #

    Thanks Rattus. Is there anywhere specific where I need to add the code in order for it to work? I have tried it in a couple of places and it hasn't made any difference.

  4. Rattus
    Plugin Author

    Posted 2 years ago #

    <meta> tags always goes inside the <head> element.

    Open theme's header.php file and add code right after <head> tag.
    In this way all your pages will not be cached. I recommend you to create page template with name No-Cache and use it for pages you wan't be cached.

  5. nitahelpinghand
    Posted 2 years ago #

    I also need to continuously update the photos on the website but am not familiar with coding, which is why I use WP with plug-ins, etc. I looked at the above and tried a few things with no luck.

    The gallery is on my client's site at http://www.RIYC.net. If I can get it to work properly on this site, I'll be using it on others. Any help you can give me would be greatly appreciated.

    BTW, I love that a training video was created and wish it had been updated so it was easier to understand. It took hours for me just to get the plug-in to work simply because the video was outdated. Do you have an updated training video?

    Thank you for all your help!


  6. pmeswani
    Posted 2 years ago #

    nitahelpinengland, you will also need to update the .htaccess with some similar code. I found the .htaccess equiv. code by chance on google.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Grand Flagallery - Photo Gallery Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.