false, 'message' => 'Security check failed')); } } // Deprecated since 1.2.0 use Util::cache_path function speedycache_cache_path($loc = ''){ if(!empty($loc)){ $loc = trim($loc, '/'); } return \SpeedyCache\Util::cache_path($loc); } // Checks if the given plugin active // Deprectaed do not use it function speedycache_is_plugin_active($plugin){ return in_array($plugin, (array) get_option('active_plugins', array()), true); }