• Resolved tabasko

    (@tabasko)


    Hi everyone!
    I’m a bit embarrassed to admit that I feel lost ??

    1/ I have a site with about 100 pages (rather heavy because of a lot of plugins and divi).
    Currently I’ve set the cache time out to 14400 seconds (4 hours) with a timer with the same value. As for refresh preload, I’ve set it to 180 minutes (3 hours).

    What I think I’m having trouble understanding is the relationship between garbage collection and preload refresh. In my understanding, the first will delete files older than 4 hours, and the seecond will ensure that the cache is regenerated every 3 hours (thus guaranteeing that I always have a fresh cache and no garbage to collect).
    Am I right?

    My main concern = I want there to always be a cache to serve to visitors

    2/ For my other sites, I don’t need to purge every 3 hours. And so, for these other sites, ideally, I’d like to know and understand whether I can set up a cache with an unlimited lifetime, generate the cache once, and have only the pages and posts I modify rebuild themselves (only if I make changes or create a new page or post). In short, I don’t need the cache to expire and recreate itself all the time… just when I want it to (that said, maybe a bad idea with plugins that update automatically). If this is possible, how do I configure wp super cache?

    3/ A rather stupid question: is it possible to speed up the construction of the cache? I’ve got the impression that it’s a page every 2 seconds or so, is there a way of speeding things up, for example 5 pages/second?

Viewing 3 replies - 1 through 3 (of 3 total)
    1. Yeah, the preload should take care of preloading so your pages are fresh and won’t be deleted by the garbage collection.
    2. Set the garbage collection cache timeout to 0 seconds.
    3. Not at the moment, sorry, but it might be in the next release if I get this patch merged.
    Thread Starter tabasko

    (@tabasko)

    Thanks for your answers !!

    Here is what I have set :

    Preload : Refresh preloaded cache files every 600 minutes.
    (option : Preload mode (garbage collection disabled. Recommended) = CHECKED
    Cache Time Out : zero second.

    https://prnt.sc/BI7mz2JJ7uQv
    https://prnt.sc/k5VokRH-hOUx

    Even these parameter inspecting my cache folder, it happens that it’s empty !

    Not sure what else can initiate cache folder purge.

    Detached question :
    1/ Is it same : setting cahe time out to 0 VS checked (enabled) Preload mode (garbage collection disabled. Recommended) option ?
    2/ What I’m looking for is being able to set up the preload frequency at any wanted value depending of the site, and minimizing any situation with no cache to deliver to visitors. Do the shared screenshot OK will whaat I’m expecting ?

    Thank you so much for your help.

    Use the debug log in the plugin to find out why pages aren’t being cached. It should give a reason.

    1. Yeah, it is.
    2. Garbage collection isn’t going to delete any cache files, but if you edit a page, or someone leaves a comment on a post then cache files will be deleted. So, yes. It’s likely that your visitors will always see a cached page.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need some clarification to understand :)’ is closed to new replies.