• Resolved fkoomek

    (@fkoomek)


    Hello.
    How can I turn off automatic deletion of cache of categories when updating/saving a post?

    I tried to add_filter( ‘wpo_purge_all_cache_on_update’, ‘__return_false’ ); but not working. Thanks.

    Radan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Can you try turning off minify to see if this makes a difference?

    Thread Starter fkoomek

    (@fkoomek)

    It didn’t. Everytime I update/save post, the categories are purged.

    Plugin Support vupdraft

    (@vupdraft)

    Apologies, having re-read your question. You would not be able to do this with a filter.

    If you were going to do this, you would need to create a must-use plugin

    Thread Starter fkoomek

    (@fkoomek)

    Ok. And what to write there?

    Plugin Support vupdraft

    (@vupdraft)

    Whilst retrieving the code that would help you, I came across the following filter, it will affect more than just your categories though;

    add_filter( ‘wpo_cache_purge_related_elements_on_post_terms_change, ‘__return_false’ );

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable clearing cache of categories on page update/save’ is closed to new replies.