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.