Hello,
I was wondering if there was a hook I could add that is fired when you update a global block so that the cache will automatically purge. Right now, when I update a page, it fires the hook that Litespeed cache picks up on. However when I update a global block, It doesn’t purge the cache. Can you tell me what I need to add to the following list so that it will be automatic?
The docs from Litespeed are quoted below:
Purge All Hooks¶
a list of recommended hooks
LSCWP executes a “Purge All” action on the cache when certain WordPress hooks are run. You can change the purge behavior for your LSCWP installation by changing these hooks. For example, if you don’t want to purge the cache every time you create a new tag or category, remove thecreate_term
hook from the list. Or, if you do want to purge the cache every time a comment is posted on your site, you could add thecomment_post
hook.
LiteSpeed recommends you Purge All when the following hooks are run:
switch_theme
wp_create_nav_menu
wp_update_nav_menu
wp_delete_nav_menu
create_term
edit_terms
delete_term
add_link
edit_link
delete_link