WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pmeswani
    Member
    Posted 1 year ago #

    Hi,

    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?

    Thanks.

    http://wordpress.org/extend/plugins/flash-album-gallery/

  2. Rattus
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    <meta> tags always goes inside the <head> element.
    http://www.w3schools.com/tags/tag_meta.asp

    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
    Member
    Posted 1 year 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!

    Nita

  6. pmeswani
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.