Skip to content

Hook for 'Clear cache' #5277

Discussion options

You must be logged in to vote

Answered in #5281 (comment)

Hello @AleksBaikalsky there's a hook when the whole cache is getting cleared:

do_action( 'after_rocket_clean_domain', $root, $lang, $url ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals

In the same file you'll see some other hooks related to cache clearing.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AleksBaikalsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant