add_action('ws_plugin__qcache_before_ajax_clear', 'dm_clear_routine_hook');
function dm_clear_routine_hook() {
global $current_blog;
$faux_blog = clone $current_blog;
if (($nonce = $_POST["ws_plugin__qcache_ajax_clear"]) && wp_verify_nonce ($nonce, "ws-plugin--qcache-ajax-clear")) {
if (function_exists('domain_mapping_siteurl') && is_object ($faux_blog) && $faux_blog->blog_id) {
$faux_blog->domain = preg_replace('/https?:\/\//i', '', domain_mapping_siteurl(false));
if (is_multisite () && !is_main_site () && $faux_blog && $faux_blog->domain && $faux_blog->domain != $current_blog->domain) {
c_ws_plugin__qcache_purging_routines::purge_cache_dir ($faux_blog);
}
}
}
}
Statistics: Posted by mboynes — January 3rd, 2012, 9:27 am
Statistics: Posted by mboynes — November 2nd, 2011, 1:00 pm
Statistics: Posted by nickd32 — September 22nd, 2011, 5:05 pm
Statistics: Posted by nickd32 — September 22nd, 2011, 5:01 pm
Statistics: Posted by Jason Caldwell — September 20th, 2011, 9:28 pm
Statistics: Posted by nickd32 — September 17th, 2011, 8:58 pm