function ad_rebuild_cache in Advertisement 5.2
Same name and namespace in other branches
- 6.3 ad.module \ad_rebuild_cache()
- 6.2 ad.module \ad_rebuild_cache()
- 7 ad.module \ad_rebuild_cache()
Force the cache to be flushed.
3 calls to ad_rebuild_cache()
- ad_admin_ads_submit in ./
ad.module - Submit the ad administration update form.
- ad_nodeapi in ./
ad.module - Drupal _nodeapi hook.
- _ad_weight_probability_node_save in weight/
probability/ ad_weight_probability.module - Helper function, save the probability to the database.
File
- ./
ad.module, line 243 - An advertising system for Drupal powered websites.
Code
function ad_rebuild_cache($verbose = FALSE) {
$cache = variable_get('ad_cache', 'none');
$build = "ad_cache_{$cache}_build";
if (function_exists($build)) {
if ($verbose) {
drupal_set_message('Rebuilding ad cache.');
}
$build();
}
}