Global Block Hook for Cache purging

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 the create_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 the comment_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

Hi Joseph,

Thanks for reaching out.

You can do some customization to the cache purging and hook it with save_post action. All post types have that hook including a global block. Regretfully, we can’t provide any custom development about purge the cache because it is outside the scope of our theme support. Please ask help for a 3rd party developer or you can avail our One program they will answer all your questions.

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.