I seem to have an issue after using Main WP to update plugins on websites that are using the Litespeed cache.
Is there a webhook that MainWP uses after updating a plugin that I can use to trigger a purge of the Litespeed cache?
Thanks.
I seem to have an issue after using Main WP to update plugins on websites that are using the Litespeed cache.
Is there a webhook that MainWP uses after updating a plugin that I can use to trigger a purge of the Litespeed cache?
Thanks.
@wingnuttter This has actually been talked about over on the FB MainWP user group. FB group Thread
You should be able to add this Snippet to the Child Site in question via the MainWP Code Snippets Extension.
MainWP Hook: mainwp_updates_after_plugin_updates
Add this action to fire off where it says “// your code” & save it to “Execute on Child Site” this will save it to fire off in the future as well.
do_action( ‘litespeed_purge_all’ );
source: API | LSCache for WordPress | LiteSpeed Documentation
[UPDATED WORKING SCRIPTS]
[MainWP Code Snippet] - https://gist.github.com/kwcjr/3acad13eeab13c1e5288682cf9a52385
[MainWP Code Snippet NO EMAIL ] - https://gist.github.com/kwcjr/dee5a5c8e68c9f569558f483a3fa51ba
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.