WordPress.org

Forums

WP Super Cache
[resolved] Why is max garbage collection time only 1800 seconds? (3 posts)

  1. chadrew
    Member
    Posted 4 years ago #

    Hello,
    This isn't a problem, just something I was curious about. Let's say I update a blog very rarely (once a week or so), but I get few hundred visits a day so I still benefit from WP Super Cache.

    As far as I understand, garbage collection time refers to how long a cached version of the page is kept. It is deleted (or at least not used anymore) after this time passes. Is that correct?

    I was just wondering why this time can't be set to higher than 1800 seconds. I mean if I update my blog weekly, a cached version could very well be good for days.

    If I set garbage collection to 0 to disable it, could there be any negative effects? If I publish a new post, the cache will be updated anyway, right?

    Thanks.

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 4 years ago #

    You can make the expiry time longer than 1800 seconds. If you do then the plugin will check every 10 minutes for out of date files. The idea being that files are generated all the time and will go "stale" all the time too.

    I have my expiry time set to 2 days. :)

  3. chadrew
    Member
    Posted 4 years ago #

    Thanks a lot for the explanation. I guess I misunderstood the difference between garbage collection time and expiry time. But everything is clear now :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic