function ad_cache_file_adserve_select in Advertisement 5
Same name and namespace in other branches
- 6 cache/file/ad_cache_file.inc \ad_cache_file_adserve_select()
File
- cache/
file/ ad_cache_file.inc, line 400 - A plug in for the ad.module, providing a file cache mechanism for improved performance when displaying ads.
Code
function ad_cache_file_adserve_select($ads, $invalid) {
if ($include_func_select = adserve_variable('include_func_select')) {
_debug_echo("File cache: adserve_select: invoking '{$include_func_select}()'");
if (function_exists($include_func_select)) {
$cache = ad_cache_file_ro_cache();
if (!empty($cache)) {
return $include_func_select($ads, $invalid, $cache);
}
else {
_debug_echo("File cache: unexpected error: cache variable empty.");
}
}
else {
_debug_echo("File cache: adserve_select: '{$include_func_select}()' not found");
}
}
else {
_debug_echo("File cache: adserve_select: no select function defined");
}
}