Support » Plugin: WP Super Cache » [Plugin: WP Super Cache] Will preload mode disable garbage collection? And should I use expiry time?

  • I’ve got about 40000 posts and I’m using mod_rewrite cache.

    Only Single Posts (is_single), Pages (is_page), Front Page (is_front_page) and Feeds (is_feed) is cached.

    I’ve currently put 0 in Expiry Time and have built my own program that deletes feeds and front page manually every 10 minutes.

    In my situation, I would rather like to use garbage collection, but not for Single Posts and Pages. Only for Front Page and Feeds.

    If I put 600 in Expiry Time and check “Preload mode”. Will Single Posts and Pages be untouched, and Front Page and Feeds garbage collected?

    The docs say: “In ’Preload Mode’ regular garbage collection will only clean out old legacy files for known users, not the preloaded supercache files. This is a recommended setting when the cache is preloaded.”

    As you can see, I’m not sure what this means. What does “legacy files” mean? And how do you define “known users”?

    And I also wonder how smart your garbage collection is. Will it loop thru all my 40000 cached posts every time, or is it smarter than that?

Viewing 1 replies (of 1 total)
  • Plugin Author Donncha O Caoimh

    (@donncha)

    Yes, in preload mode your supercached files won’t be removed unless you have a preload interval != 0. Once a preload happens all stale files are prone to garbage collection.

    See the docs for a fairly in-depth explanation for known users and legacy files. I’d only be copy/pasting what’s there.

    GC is fairly dumb, it goes through all the cached posts looking for old files.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Super Cache] Will preload mode disable garbage collection? And should I use expiry time?’ is closed to new replies.