• This is probably a really straightforward question about garbage collection, but for the life of me, I haven’t been able to find anything written anywhere that definitively answers it for me.

    I understand that the “cache timeout” setting dictates how long pages remain fresh.

    When garbage collection runs, does it only delete pages that have become stale since the last time garbage collection runs, or does it delete ALL pages – i.e., does it declare all currently “fresh” cached pages as stale, and delete them also.

    The reason I ask is – I’m trying to make sure that all cached pages become stale just after midnight each night (I have a calendar widget that I want to make sure updates properly at each new day). I’ve set garbage collection to run shortly after midnight, but it’s not clear to me if that will just delete pages that were already declared stale, or actually declare all currently “fresh” cached pages as stale, and delete them. Only the latter would actually update all the pages at midnight. Despite doing lots of searching, I haven’t been able to find a definitive answer.

    Thank you for the assistance!

    https://www.ads-software.com/plugins/wp-super-cache/

  • The topic ‘Simple question about what garbage collection actually does’ is closed to new replies.