function ad_cache_file_rebuild in Advertisement 5
Same name and namespace in other branches
- 5.2 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
- 6.3 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
- 6 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
- 6.2 cache/file/ad_cache_file.inc \ad_cache_file_rebuild()
- 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;
}
}