function ad_cache_file_cache in Advertisement 7
Same name and namespace in other branches
- 5.2 cache/file/ad_cache_file.inc \ad_cache_file_cache()
- 6.3 cache/file/ad_cache_file.inc \ad_cache_file_cache()
- 6.2 cache/file/ad_cache_file.inc \ad_cache_file_cache()
Keep a copy of the cache in a static.
9 calls to ad_cache_file_cache()
- ad_cache_file_close in cache/
file/ ad_cache_file.inc - Close the cache file and write updated cache to disk.
- ad_cache_file_cron in cache/
file/ ad_cache_file.module - Implementation of hook_adcacheapi().
- ad_cache_file_display_ad in cache/
file/ ad_cache_file.inc - Display a given advertisement.
- ad_cache_file_get_cache in cache/
file/ ad_cache_file.inc - Return the cache structure.
- ad_cache_file_hook in cache/
file/ ad_cache_file.inc - Return hook definition.
File
- cache/
file/ ad_cache_file.inc, line 377 - A plug in for the ad.module, providing a file cache mechanism for improved performance when displaying ads.
Code
function ad_cache_file_cache($update = array()) {
static $cache = array();
if (!empty($update)) {
$cache = $update;
}
return $cache;
}