简体   繁体   中英

wp super cache update cache only on post update

I have set a cache time of 3600 seconds on WP super Cache

Is there any way to leave it longer than that, and only update the cache file when the post is updated? So it doesnt have to rebuild the cache every 3600 seconds for each post?

thank you

On the WP Super Cache admin page, make sure under Advanced that "Clear all cache files when a post or page is published or updated" is checked.

Then set the cache timeout (under "Expiry Time & Garbage Collection") to 86400 seconds, and set the scheduler to "Clock : Once Yearly".

OR, if you set the cache timeout to 0 , this will disable garbage collection so the cache can only be cleared manually.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM