• I turned on page cache for my blog a couple of days ago.
    I see the cached pages in, e.g.:
    /page_enhanced/domain.com/my-post/_index.html (and _gzip)
    And that’s good, except some of my posts’ filename has a .old on the end, which i assume means for some reason the page is stale. But i can’t understand why that would be.
    Can somebody explain what makes a cached page go stale if nothing changes, I mean i haven’t edited it (in years!) and there are no comments or any other changes i can think of.
    Is there a setting somewhere that causes pages to go stale after some sort of timeout?

Viewing 6 replies - 1 through 6 (of 6 total)
  • See in browser setting cache expire. W3tc rename cache files after expire.

    Thread Starter ebeighe

    (@ebeighe)

    Thanks, so i found this message in the page cache settings:

    – The TTL of page cache files is set via the “Expires header lifetime” field in the “HTML” section on Browser Cache Settings tab.

    Then, in the HTML&XML section is has this setting, which is unchecked by default:

    – Set the expires header to encourage browser caching of files.

    So I ticked that one and set it to 3600000 seconds ( i think that’s 1000 hours).

    Is that the right setting?

    Thread Starter ebeighe

    (@ebeighe)

    well i can’t figure it out.
    After making the change noted above, my pages are expired after less than a day.

    Thread Starter ebeighe

    (@ebeighe)

    my pages, i think, all got invalidated at 6:34a today — this is, probably not coincidentally, when my wp-cron runs.

    I had disabled wp-cron in the hopes of reducing server load, e.g. i did this:
    https://www.inmotionhosting.com/support/website/wordpress/disabling-the-wp-cronphp-in-wordpress
    And I put in a cron job to run wp-cron at 6:34 once a day.

    Why did my pages all get invalidated?

    Here are the browsercache.html settings from master.php:

    "browsercache.html.compression": "1",
        "browsercache.html.last_modified": "1",
        "browsercache.html.expires": "1",
        "browsercache.html.lifetime": "3600000",
        "browsercache.html.cache.control": "0",
        "browsercache.html.cache.policy": "cache_public_maxage",
        "browsercache.html.etag": "0",
        "browsercache.html.w3tc": "0",
        "browsercache.html.replace": false,

    The a copy of entire w3tc master.php settings are here:
    https://pastebin.com/d5QK2zLi

    thomasl6

    (@thomasl6)

    Hello, @nigrosimone

    Do you if it is possible to disable this W3tc function which rename cache files ?
    Because it rename files with .old extension that js files are not loaded (bad url)
    Or if it is possible to modify cache time expiration ?

    Thanks a lot

    benoitroubert

    (@benoitroubert)

    Hello,

    We have the exact same issue.

    A solution would be greatly appreciated from anyone!!!

    How to get rid of this rename cache files function???

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘what causes a cached page to go stale?’ is closed to new replies.