You are here

function ad_cache_file_rebuild in Advertisement 5

Same name and namespace in other branches
  1. 5.2 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
  2. 6.3 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
  3. 6 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
  4. 6.2 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
  5. 7 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()

Bootstrap drupal, then run ad_cache_file_build() from ad.module which will rebuild all cache files.

2 calls to ad_cache_file_rebuild()
ad_cache_file in cache/file/ad_cache_file.inc
This is the actual cache function called by adserve.php that displays ads without bootstrapping Drupal.
ad_cache_file_increment in cache/file/ad_cache_file.inc

File

cache/file/ad_cache_file.inc, line 374
A plug in for the ad.module, providing a file cache mechanism for improved performance when displaying ads.

Code

function ad_cache_file_rebuild() {
  adserve_bootstrap();
  if (function_exists('ad_cache_file_build')) {
    ad_cache_file_build();
    return 0;
  }
  else {
    return -1;
  }
}