• Resolved pickme

    (@pickme)


    Hello,

    I am using an instagram feed on a site which does not display newly uploaded photos from the instagram account if I don’t purge all caches manually.

    I have enabled: Page cache, Minify, Browser cache, CDN

    Which setting on W3 Total Cache should I change in order for newly uploaded photos on the instagram account to get displayed on the site via the instagram feed without having to purge caches manually?

    Thank you!

    • This topic was modified 6 years, 2 months ago by pickme.
    • This topic was modified 6 years, 2 months ago by pickme.
    • This topic was modified 6 years, 2 months ago by pickme.
Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter pickme

    (@pickme)

    @vmarko hello!

    A new photo has been uploaded on Instagram 14 hours ago and has not been displayed on the feed.

    On browser cache:

    For CSS&JS I have checked:

    Set expires header
    Expires header lifetime: 5184000
    Set entity tag (ETag)
    Enable HTTP (gzip) compression
    Remove query strings from static resources
    Disable cookies for static files

    For HTML&XML I have checked:

    Set expires header
    Expires header lifetime: 3600
    Set entity tag (ETag)
    Enable HTTP (gzip) compression

    For Media & Other Files I have checked:

    Set expires header
    Expires header lifetime: 31536000
    Set entity tag (ETag)
    Enable HTTP (gzip) compression
    Remove query strings from static resources
    Disable cookies for static files

    • This reply was modified 6 years, 2 months ago by pickme.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pickme

    Thank you for the information. It appears that this is not working with caching as it should be. you have all the correct settings but the page is not being updated the way W3 Total Cache can see it so it can clear the cache.
    There are a couple things that you can do. You can set up a cron and clear the cache programmatically on the desired interval using the w3tc_flush_all
    Alternatively (and possibly easier) you can setup a cache Preload in Performance>Page Cache and Automatically prime the page cache. This will ensure that you always serve warm cache to the visitors.
    You can use the default settings and make sure to add your sitemap in Sitemap URL:
    If using the default settings:

    Update interval: 900
    The number of seconds to wait before creating another set of cached pages.
    Pages per interval:	
    10
    Limit the number of pages to create per batch. Fewer pages may be better for under-powered servers.

    And you have E.G. 500 pages this means that your entire website will be preloaded in 12.5 hours. Once the preload is complete, it will start from the beginning and create a new set of cached pages.
    This will ensure that your updated content is being kept fresh.
    Thank you!

    Thread Starter pickme

    (@pickme)

    @vmarko hello!

    I have chosen to setup Cache Preload.

    The XML sitemap of the website has 22 pages.

    With an
    Update Interval = 900 seconds (15 minutes)
    and
    Page per interval = 22
    means every 15 minutes the cache of the entire website (all 22 pages) will be purged (22 pages per 900 sec = 15 minutes).

    With an
    Update Interval = 900 seconds (15 minutes)
    and
    Page per interval = 1
    means in 5 hours and 30 minutes (900×22 = 19800sec) the cache of the entire website will be purged (1 page per 900 sec = 19800 sec when having 22 pages).

    I am thinking to set up the following:

    Update Interval = 86400 seconds (24 hours)
    Page per interval = 22

    Will that work? > All 22 pages will have their cache purged every 24 hours.

    I don’t really understand the difference between terms: Cache Preload / Prime Cache / Purge Cache.

    What does ‘prime the page cache’ mean?

    Thanks!

    • This reply was modified 6 years, 2 months ago by pickme.
    • This reply was modified 6 years, 2 months ago by pickme.
    • This reply was modified 6 years, 2 months ago by pickme.
    • This reply was modified 6 years, 2 months ago by pickme.
    • This reply was modified 6 years, 2 months ago by pickme.
    • This reply was modified 6 years, 2 months ago by pickme.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pickme

    Yes, you can set it up this way and every 24 hrs new set of 22 pages will be cached.
    Priming the page cache (or cache preload) means that a new set of the cached pages will be created on the interval.
    Thank you!

    Thread Starter pickme

    (@pickme)

    @vmarko,

    Thank you very much.

    I will give an update on the next uploaded image on instagram.

Viewing 5 replies - 16 through 20 (of 20 total)

The topic ‘Instagram feed’ is closed to new replies.