You are here

function advagg_cron_alter in Advanced CSS/JS Aggregation 7.2

Implements hook_cron_alter().

Related topics

File

./advagg.module, line 1283
Advanced CSS/JS aggregation module.

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 * * *';
  }
}