• weiluri

    (@weiluri)


    Hello,

    I’m trying to cache all site pages with no time limit but even if i put a big interval for garbage collection or zero to disable it, I still get the page not from cache when I first enter site after few minuets. It seems that it is 1800 seconds or something like this no meter what I do.
    Do you have an idea what am I doing wrong?
    This is my site https://www.bezalelschatz.co.il/

    I’m using this definitions:

    Automatically prime the page cache
    Update interval: 9999999 seconds
    Pages per interval: 20
    Sitemap URL: https://www.bezalelschatz.co.il/sitemap.xml
    Preload the post cache upon publish events

    Purge Policy: Page Cache:
    Front page
    Posts page
    Post page

    Purge limit: 0
    Garbage collection interval: 9999999 seconds

    Thank you,
    Uri

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ramanan

    (@superpoincare)

    No, that’s not the correct setting.

    Your first setting is for priming and should be low. It has nothing to do with html expiring. It’s how frequently the plugin caches pages. So 10 now, 10 after 10 mins, 10 after 20 mins and so on.

    The page expiry is set in the “Browser Cache” page. The maximum is 2592000. That is even if you set it higher than this, W3TC will limit it to this number.

    Please remember to not choose Set expires header and choose a cache policy of no-cache

    Garbage collection of 3600 is fine.

    Thread Starter weiluri

    (@weiluri)

    Thank you very much!
    Can you please clarify the server caching expiration?
    Is it the purge definition responsible for this?
    What do I have to define for the server cache expiration (page cache, object cache, db cache), to be as long as it can? and if possible to serve the server cached pages for ever after it’s creation, until I click the clear the cache button manualy.
    btw, the default value for Expires header lifetime on the “Browser Cache” page on my admin was 31536000 which is more then the max number you wrote above.

    Thank you,
    Uri

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cache pages forever’ is closed to new replies.