Any cache plugins that automatically purge unpublished page? (3 posts)

  1. geekjon
    Posted 2 years ago #

    I unpublish almost as many posts as I publish, due to their time-sensitive nature. I've tried a few cache plugins to see if they will purge a post from the cache once it is unpublished (as in changing post status from Published to Draft), and I haven't yet found one that does this. Does anyone know of a cache plugin that is actually aware of Post Status Transitions http://codex.wordpress.org/Post_Status_Transitions ?

  2. geekjon
    Posted 2 years ago #


    I may have posted this in the wrong forum, but when I tried to repost it in a more appropriate forum, the post was deleted. Sorry about that.

  3. Ihor Vorotnov
    Posted 2 years ago #

    W3 Total Cache has no API but you actually can trigger any function (see example here http://wordpress.org/support/topic/plugin-w3-total-cache-api-available?replies=10). Post status transitions allows creating custom callbacks. Create one in your functions.php, call W3TC class and do whatever you need (purge the page from cache and rebuild cache for example).

Topic Closed

This topic has been closed to new replies.

About this Topic