14 if (!defined(
"FRAMEWORKS_ART_FUNCTIONS_CACHE")):
15 define(
"FRAMEWORKS_ART_FUNCTIONS_CACHE",
true);
22 } elseif (is_object( $xoopsUser )) {
23 $groups = $xoopsUser->getGroups();
29 $contentCacheId = XOOPS_GROUP_ANONYMOUS;
32 return $contentCacheId;
44 $name = ($name) ? $name : strval(time());
48 $key =
"{$dirname}_{$name}";
69 if (empty($name))
return $data;
72 $key =
"{$dirname}_{$name}";
94 $pattern = (
$dirname) ?
"{$dirname}_{$name}.*\.php" :
"[^_]+_{$name}.*\.php";
95 if (
$handle = opendir($root_path)) {
97 if (is_file($root_path .
'/' .
$file) && preg_match(
"/{$pattern}$/", $file)) {
98 @unlink($root_path .
'/' . $file);
104 $files = (array) glob($root_path .
"/*{$dirname}_{$name}*.php");
105 foreach ($files as
$file) {
121 if (empty($pattern)) {
122 $dirname = (is_object($xoopsModule) ? $xoopsModule->getVar(
"dirname",
"n") :
"system");
123 $pattern =
"/(^{$dirname}\^.*\.html$|blk_{$dirname}_.*[^\.]*\.html$)/";