• Resolved Alexander Guskov

    (@forcesail)


    Why wouldn’t you process clean_post_cache hook?
    It would re-cache posts/pages when some injecting into them blocks (through shortcodes) are changed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Alexander Guskov

    (@forcesail)

    And clean_user_cache hook as well. please.

    I temporary added:
    add_action(‘clean_user_cache’, array($this, ‘purge_user_on_update’), 10, 1); add_action(‘clean_post_cache’, array($this, ‘purge_post_on_update’), 10, 1); add_action(‘clean_post_cache’, array($this, ‘purge_archive_pages_on_post_update’), 10, 1);
    public function purge_user_on_update( $user_id ) {
    WPO_Page_Cache::delete_cache_by_url(get_author_posts_url($user_id), true); }
    to the file class-wpo-cache-rules.php instead of:
    add_action(‘save_post’, array($this, ‘purge_post_on_update’), 10, 1);
    add_action(‘save_post’, array($this, ‘purge_archive_pages_on_post_update’), 10, 1);
    and can confirme that all works perfectly.

    But it would be perfect if it found it’s place in the oficial release, please.

    Plugin Support vupdraft

    (@vupdraft)

    Hi Alexander,

    I have added a ticket to our internal development board.

    Thread Starter Alexander Guskov

    (@forcesail)

    Thank you. It would be nice to be informed when it’s processed.

    Plugin Support vupdraft

    (@vupdraft)

    Hi Alexander,

    I would advise that you keep an on our change logs and keep the plugin updated. We make a large number of fixes and updates with each update so it’s really difficult for us to keep track of which users required which fixes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘clean_post_cache hook’ is closed to new replies.