Support » Plugin: Cache Enabler - WordPress Cache » How to force a new post cache version

  • Resolved Gabri Gonzalez

    (@devgabri)


    Hi,
    I’m trying with a custom plugin to force a new cached version of a post previously cached.

    I’m doing this to clear the cached version and runs ok:

    if (  has_action('ce_clear_post_cache') ) {
    do_action('ce_clear_post_cache', $post_id); // post_id
    //HERE I NEED TO FORCE A NEW CACHED VERSION OF THIS post_id
    }

    But I need to force the new cached version for this post, how can I force?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • That is currently not supported by Cache Enabler, the cache must build naturally. Someone from the community wrote about a method they use to warm the cache but I’m not sure if that’s what you’re looking for: https://jeffgrundy.com/warm-your-wordpress-cache/

    Thanks for support.

    I have taken a look but it seems that it is to create a new cache of a whole site and I think is more complex than I need, in any case, I will give a try maybe to adapt it.

    That feature is not supported now for any technical reason?
    Do not you think it can be very useful?
    I think it would be very useful since you would not have to wait for a new visit after clear the cached version of a post.

    By the way, plugin and support both awesome.

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to force a new post cache version’ is closed to new replies.