Increment the advagg_global_counter variable by one.

@todo Allow this value to be kept in sync across a multisite.

Return value

int New value of advagg_global_counter.

2 calls to advagg_increment_global_counter()
advagg_admin_increment_global_counter dans ./advagg.admin.inc
Clear out all advagg cache bins and increment the counter.
drush_advagg_force_new_aggregates dans ./advagg.drush.inc
Callback function for drush advagg-force-new-aggregates.

Fichier

./advagg.cache.inc, line 417

Code

function advagg_increment_global_counter() {
    $new_value = advagg_get_global_counter() + 1;
    variable_set('advagg_global_counter', $new_value);
    return $new_value;
}