/*
Extends the WP_Cron schedules to support 5 minute intervals.
Attach to: add_filter("cron_schedules");
*/
if (!function_exists ("ws_plugin__qcache_extend_cron_schedules"))
{
function ws_plugin__qcache_extend_cron_schedules ($schedules = array ())
{
eval ('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action ("ws_plugin__qcache_before_extend_cron_schedules", get_defined_vars ());
unset ($__refs, $__v); /* Unset defined __refs, __v. */
/**/
$array = array ("every5m" => array ("interval" => 300, "display" => "Every 5 Minutes"));
/**/
return apply_filters ("ws_plugin__qcache_extend_cron_schedules", array_merge ($array, $schedules), get_defined_vars ());
}
}
Statistics: Posted by Jason Caldwell — June 21st, 2010, 7:21 pm
Statistics: Posted by flymike — June 9th, 2010, 3:09 pm