im trying to Flush the WP Cache on my Child Sites via the Code Snippet Extension.
I tried already with a dev site to send the following snippet:
functionwp_cache_flush() {
global$wp_object_cache;
return$wp_object_cache->flush();
}
Site is connected, as i can update plugins and themes.
When send the Snippet to the Child Site i get “Process completed successfully” back, but also the Message:" MainWP Child plugin not detected. First, install and activate the plugin and add your site to your MainWP Dashboard afterward"
thanks for reaching out.
Do you get this error for any code snippet or just this one?
What snippet type do you have selected when running this snippet?
thanks for verifying that. It seems that the problem is in the snippet itself.
I am not a coder so I am not 100% sure, but I think that the problem is that in your snippet, function is coded, but there is no actual call to the function, so it’s not being executed.
Please allow me a bit to verify this with out dev team.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.