autoptimize_do_cachepurged_action
-
Hi Frank,
I am working on the LiteSpeed Cache plugin. As you may recall, there was an issue with us not purging our cache when you purge.
For our cache, the purge message is sent via response header to the server.
WordPress has a function, ‘wp_ob_end_flush_all’, which is hooked to shutdown priority 1. LiteSpeed Cache must know what to purge prior to this hook.
Since autoptimize_do_cachepurged_action is hooked to priority 11, it is too late for our cache to use.
I have two proposals:
1. Could you create a define when you need to purge? Right before you add the shutdown action.
Something likedefine('AUTOPTIMIZE_PURGE', true)
2. I can check for the existence of the function ‘autoptimize_do_cachepurged_action’. If the function exists, I will assume that autoptimize will purge on this request.
The first option is the preferred option, as I will know precisely when you intend to purge, as opposed to assuming your intent with the second option.
Cheers,
Kevin
- The topic ‘autoptimize_do_cachepurged_action’ is closed to new replies.