You are here

function ad_cache_file_get_cache in Advertisement 5.2

Same name and namespace in other branches
  1. 6.3 cache/file/ad_cache_file.inc \ad_cache_file_get_cache()
  2. 6.2 cache/file/ad_cache_file.inc \ad_cache_file_get_cache()
  3. 7 cache/file/ad_cache_file.inc \ad_cache_file_get_cache()

Return the cache structure.

File

cache/file/ad_cache_file.inc, line 58
A plug in for the ad.module, providing a file cache mechanism for improved performance when displaying ads.

Code

function ad_cache_file_get_cache($data = NULL) {
  $cache = ad_cache_file_cache();
  if ($data) {
    if (isset($cache[$data])) {
      return $cache[$data];
    }
    else {
      return NULL;
    }
  }
  return $cache;
}