function alchemy_cache_set in Alchemy 7
Same name and namespace in other branches
- 6 alchemy.module \alchemy_cache_set()
@todo Please document this function.
See also
1 call to alchemy_cache_set()
- alchemy_get_elements in ./
alchemy.module - @todo Please document this function.
File
- ./
alchemy.module, line 300 - $Id: alchemy.module,v 1.1.2.3 2010/11/17 21:17:48 tomdude48 Exp $
Code
function alchemy_cache_set($cid, $command, $data) {
if (is_numeric($cid)) {
alchemy_cache_clear($cid, $command);
$fields = array(
'nid' => $cid,
'path' => '',
'created' => REQUEST_TIME,
'command' => $command,
'data' => $data,
);
$query = db_insert('alchemy_cache')
->fields($fields);
$query
->execute();
}
return TRUE;
}