• danbrady

    (@danbrady)


    I have a question regarding the garbage collection of cached files when preload mode is activated.

    The plugin’s advanced settings page says this: “Warning! PRELOAD MODE activated. Supercache files will not be deleted regardless of age.”

    Whereas the main plugin page says:
    “Likewise, preload as many posts as you can and enable “Preload Mode”. Garbage collection will still occur but it won’t affect the preloaded files. If you don’t care about sidebar widgets updating often set the preload interval to 2880 minutes (2 days) so all your posts aren’t recached very often. When the preload occurs the cache files for the post being refreshed is deleted and then regenerated. Afterwards a garbage collection of all old files is performed to clean out stale cache files.
    Cached files will still be deleted when posts are made or edited or comments made when preloading is enabled.”

    So, this statmennt – “Supercache files will not be deleted regardless of age” – is technically not correct? The files *will* be deleted, not by the garabage collection process, but by the preload process. IOW, when the preload schedule or timer is reached the preloaded files are deleted and recreated. Is that correct?

    I’m trying to avoid an ever-growing backlog of old cache files

    Thanks

    • This topic was modified 7 years ago by danbrady.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    As for me, I never understood how it works …
    On my website, if I launch a preload, it deletes all cached files and DON’T create any new files …
    So… preload …

    Best regards.

    @danbrady – it’s correct, despite the misleading language. The garbage collection system always runs but if preload mode is enabled it skips deleting any supercache files. The language in the readme.txt could be better.

    @joy0114 – best thing to do is enable debugging in the plugin and run the preload again. The debugger should tell you it’s running and what’s happening. If it’s not then something is up on your server.

    Thread Starter danbrady

    (@danbrady)

    Hi Donncha, thanks for your reply

    However, my question wasn’t really answered. I understand that garbage collection is disabled when preload is set to ON. But let’s assume I schedule preload to run once per day. What happens after 24 hours, when the second preload scan runs? What happens to the old (first day’s) preloaded files?

    Does the preload process automatically delete the OLD cached files, and replace with new versions?

    Edit: typos

    • This reply was modified 6 years, 11 months ago by danbrady.
    • This reply was modified 6 years, 11 months ago by danbrady.

    hi
    I have the same problems and doubts.

    I scheduled prelod every 720 minutes.
    I notice that in the directory:

    wp-content/cache/supercache/www.mysite.org/

    all sub-directories (which refer to every posts and pages of mysite.org ) have a correct creation date and time, according to the time interval I scheduled.

    Viceversa the files index.html and index-mobile.html have the date and time of the previous preload.
    E.g.: all subdirectorie are dated March 1 2:59 while index.html is dated February 28 16:13

    If I test the cache, the timestamp of both pages (1.html and 2 html) is Feb 28 16:13; it shoudn’t be March 1 2:59?

    Why are files creation time (index.html) different to those of sub-direcotries?

    Many thank in advance.

    Hi,

    I’m a bit confused on this also, if I have preload enabled and it gets to where I have it scheduled to preload all the posts again, are the old cache versions deleted or will they just keep being saved and build up over time?

    Let’s say I have 25 pages and 25 are cached with preload and it’s set to preload again in one day.
    When it preloads the 2nd day, do I have the current 25 and the old 25 stored somewhere and then on day 3 do I have 75 and day 4 are there 100? Or is it always 25 and no old useless ones stored?

    I’d like to make sure because if I set it to preload every day or two I don’t want to find out over time that I’ve built up a big file or folder with hundreds of old caches.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Preload and garbage collection’ is closed to new replies.