You are here

function _magic_check_cache in Magic 7

Checks the magic cache.

Parameters

string $cid: A string cache id. {theme_name}_{css/js}_{md4_hash}

Return value

array Either the array of the cached data, or FALSE.

1 call to _magic_check_cache()
magic_css_js_alter in ./magic.module
Helper function to remove unwanted css or js.

File

./magic.module, line 492
Keep Frontend DRY; sprinkle it with MAGIC!

Code

function _magic_check_cache($cid) {
  $data = cache_get($cid, 'cache_magic');
  return $data ? unserialize($data->data) : FALSE;
}