function ad_cache_file_ro_cache in Advertisement 6
Same name and namespace in other branches
- 5 cache/file/ad_cache_file.inc \ad_cache_file_ro_cache()
2 calls to ad_cache_file_ro_cache()
- 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_adserve_select in cache/
file/ ad_cache_file.inc
File
- cache/
file/ ad_cache_file.inc, line 394 - A plug in for the ad.module, providing a file cache mechanism for improved performance when displaying ads.
Code
function ad_cache_file_ro_cache($cache = array()) {
static $ro_cache = array();
if (!empty($cache)) {
$ro_cache = $cache;
}
return $ro_cache;
}