17 if (!defined(
"FRAMEWORKS_ART_FUNCTIONS_CACHE")):
18 define(
"FRAMEWORKS_ART_FUNCTIONS_CACHE",
true);
29 } elseif (
$xoops->isUser()) {
36 $contentCacheId = FixedGroups::ANONYMOUS;
39 return $contentCacheId;
66 $key =
"{$dirname}_{$name}";
110 $cache_path = ($cache_path) ? $cache_path :
$xoops->globalData->getVar(
'cache-path');
112 $key =
"{$dirname}_{$name}";
152 $pattern = (
$dirname) ?
"{$dirname}_{$name}.*\.php" :
"[^_]+_{$name}.*\.php";
153 if ($handle = opendir($cache_path)) {
154 while (
false !== (
$file = readdir($handle))) {
155 if (is_file($cache_path .
'/' .
$file) && preg_match(
"/{$pattern}$/", $file)) {
156 @unlink($cache_path .
'/' . $file);
162 $files = (array)glob($root_path .
"/*{$dirname}_{$name}*.php");
188 if (empty($pattern)) {
190 $pattern =
"/(^{$dirname}\^.*\.html$|blk_{$dirname}_.*[^\.]*\.html$)/";
192 $cache_path =
$xoops->globalData->getVar(
'cache-path');
193 if ($handle = opendir($cache_path)) {
194 while (
false !== (
$file = readdir($handle))) {
195 if (is_file($cache_path .
'/' .
$file) && preg_match($pattern, $file)) {
196 @unlink($cache_path .
'/' . $file);
mod_clearSmartyCache($pattern="")
mod_clearCacheFile($name="", $dirname=null)
mod_loadCacheFile_byGroup($name, $dirname=null, $groups=null)
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
mod_createFile($data, $name=null, $dirname=null, $cache_path=null)
mod_createCacheFile($data, $name=null, $dirname=null)
mod_loadCacheFile($name, $dirname=null)
mod_generateCacheId_byGroup($groups=null)
mod_generateCacheId($groups=null)
static write($key, $value, $duration=0)
mod_createCacheFile_byGroup($data, $name=null, $dirname=null, $groups=null)
mod_clearFile($name="", $dirname=null, $cache_path=null)
mod_loadFile($name, $dirname=null, $cache_path=null)