• Hi There,

    I’m trying to set up WP Super Cache to preload and refresh the whole preload cache once a week.

    I have set the page expiry time to 3 hours but even after the page expires they are not regenerated when a person visits the page…

    Is there any way I can make WP Super Cache regenerate expired pages for real users while still serving the old pre-load for bots?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Have you enabled “preload mode”? That should stop those files being deleted after 3 hours.

    Thread Starter minuszero

    (@minuszero)

    Yes preload is on. The problem I’m having is the pre-loaded pages do not get regenerated once they expire (set to 3 hours) but only when the whole precache is regenerated (Every 7 days).

    I don’t want every page regenerating every 3 hours as that will put a massive load on the server only the expired pages that a non bot user visits.

    Odd, if “Preload mode (garbage collection only on legacy cache files. Recommended.)” is checked on the Preload page then those pages shouldn’t be deleted.

    You could try to debug it but that means editing source code and tracing what happens when garbage collection happens. Not particularly easy unless you know your way around.

    Thread Starter minuszero

    (@minuszero)

    Ok I think you missing the point here. My problem is those files ARE NOT deleting or updating and that’s my problem. I want the expired files to regenerate when a non bot visits a page where the cached file is older than 3 hours.

    Unfortunately that’s not possible. You could change it with the aid of filters to do that probably but right now I wouldn’t know where to start advising you to look.

    Thread Starter minuszero

    (@minuszero)

    How Odd… That’s kind of how I would expect preload mode to work. Otherwise its a tad pointless… Long preload reloads give stale pages and short ones kill the server.

    Wonder if the dev would be open to an option in the preload section that says “Regenerate expired preloaded pages for non bot users”…

    Thanks for your help anyway 🙂

    Ahem, I am the dev! 🙂

    That’s how preload is supposed to work though, it’s a trade off between stale pages and conserving CPU power on your server.

    You’re the only person who has asked about a feature like that but I’ll keep it in mind.

    Thread Starter minuszero

    (@minuszero)

    Whoops my apologies :-$

    Well thank you for the prompt responses. Is always good to see developers who care 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: WP Super Cache] Preload Mode’ is closed to new replies.