You are here

function ad_rebuild_cache in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 ad.module \ad_rebuild_cache()
  2. 6.2 ad.module \ad_rebuild_cache()
  3. 7 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
Implementation of hook_nodeapi().

File

./ad.module, line 233

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(t('Rebuilding ad cache.'));
    }
    $build();
  }
}