You are here

function _magic_set_cache in Magic 7

Sets the magic cache.

Parameters

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

array $data: The array of data to store within the cache.

Return value

object A cache data object.

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

File

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

Code

function _magic_set_cache($cid, $data) {
  $data = serialize($data);
  return cache_set($cid, $data, 'cache_magic', CACHE_TEMPORARY);
}