function ad_rebuild_cache in Advertisement 7
Same name and namespace in other branches
- 5.2 ad.module \ad_rebuild_cache()
- 6.3 ad.module \ad_rebuild_cache()
- 6.2 ad.module \ad_rebuild_cache()
Force the cache to be flushed.
2 calls to ad_rebuild_cache()
- ad_admin_ads_submit in ./
ad.admin.inc - Submit the ad administration update form.
- ad_nodeapi in ./
ad.module
File
- ./
ad.module, line 326
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();
}
}