Implements hook_cron_alter().

Sujets associés

Fichier

./advagg.module, line 1284

Code

function advagg_cron_alter(&$data) {
    // Run this cron job every 2 minutes.
    if (isset($data['advagg_js_compress_cron'])) {
        $data['advagg_js_compress_cron']['rule'] = '*/2 * * * *';
    }
    // Run this cron job every 5 minutes.
    if (isset($data['advagg_relocate_cron'])) {
        $data['advagg_relocate_cron']['rule'] = '*/5 * * * *';
    }
    // Run this cron job every day.
    if (isset($data['advagg_cron'])) {
        $data['advagg_cron']['rule'] = '0 0 * * *';
    }
}