WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Feature request: caching the homepage for a limited time in preload mode (4 posts)

  1. talgalili
    Member
    Posted 1 year ago #

    Hello dear Donncha,

    I see you are working to improve your wonderful plugin, and wanted to ask for a feature I've mentioned here a few times:
    "caching the homepage for a limited time in preload mode"

    I have a busy website with many posts, which I can keep for many weeks as they are. But I would like to have the homepage refresh every half an hour. Right now I solve this by simply not caching the homepage (which is a shame).
    Another way of doing it might be do add the function to use legacy caching to the homepage, so that it will get cleared (while the supercached posts, through the preload, will not be cleared).

    I'd be happy to hear if there is a chance to see this in your new release.

    With regards,
    Tal

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

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    You could write a plugin that schedules a job every half hour. That job would delete the homepage.

    It's possible to do this in WP Super Cache but it's a specific use and not much use to 99% of users so it'd have to be a more generalised function. Which is harder obviously.

  3. talgalili
    Member
    Posted 1 year ago #

    Hi Donncha,
    Thank you for your reply.

    Question: could this maybe be done using a cron job?
    Is it possible that you will add an option that there will be a unique URL that will clear the cache for some page (for example, the homepage), if it is visited (say, by a cron job)?

    Thanks!

    Tal

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah, it could be. You know the path to the cached file in wp-content/cache/supercache/HOSTNAME/index.* so you could unlink those files on a regular basis.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic