• Resolved luminsol

    (@luminsol)


    Hi guys,

    I have a custom post type. It’s editable from the front end and a call to wp_update_post is made to submit any changes.

    However, I’m finding that the cache isn’t being cleared when the post is updated.

    Is there any calls that I need to make to tell Cache Enabler to flush the cache?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you able to save your post from the “Edit Post” page? Cache Enabler gives you the option to clear the page cache or clear the complete cache when saving posts from the edit page.

    Thread Starter luminsol

    (@luminsol)

    Thanks for replying.

    Yes the Edit Post page works, but I don’t want non-admin users using the WordPress backend – only a basic custom front end. When they make their changes on the front end, the old cached page is still displayed. They get confused, thinking their changes aren’t working. So I need to find a way to trigger a flush.

    Do you know what the issue may be? Or give some specifics on how CacheEnabler detects/triggers a cache flush?

    I’ve trialed many other cache plugins, but CacheEnabler is the best so I would like to keep using it if possible.

    Many thanks.

    Unfortunately, that is a bit out of the scope of our support as that deals with a custom setup.

    Thread Starter luminsol

    (@luminsol)

    If anyone is following this thread, I managed to get this to work.

    After examining the code, I found there are ce_clear_cache and ce_clear_post_cache actions that can be fired (do_action) to trigger the clear.

    From the code, I also found that Cache Enabler does not seem to automatically flush the cache when a post/page is edited like other plugins. It only seems to do this for comments, which is a bit odd.

    Anyway if anyone from Cache Enabler is reading -> Feature Request: Add ability to flush cache when a post/page is updated.

    Right now, I’m doing it in my theme which is not ideal.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom post type cache not being cleared on update?’ is closed to new replies.