You are here

function ad_cache_file_rebuild in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
  2. 5 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.

1 call to ad_cache_file_rebuild()
ad_cache_file_close in cache/file/ad_cache_file.inc
Close the cache file and write updated cache to disk.

File

cache/file/ad_cache_file.inc, line 363
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;
  }
}