cache in windows file
parent
cfda210fdc
commit
3a95027a06
|
@ -563,6 +563,10 @@ function filecache()
|
||||||
}
|
}
|
||||||
$tag = __DIR__ . '/OneManager/' . $_SERVER['disktag'];
|
$tag = __DIR__ . '/OneManager/' . $_SERVER['disktag'];
|
||||||
while (strpos($tag, '/')>-1) $tag = str_replace('/', '_', $tag);
|
while (strpos($tag, '/')>-1) $tag = str_replace('/', '_', $tag);
|
||||||
|
if (strpos($tag, ':')>-1) {
|
||||||
|
while (strpos($tag, ':')>-1) $tag = str_replace(':', '_', $tag);
|
||||||
|
while (strpos($tag, '\\')>-1) $tag = str_replace('\\', '_', $tag);
|
||||||
|
}
|
||||||
// error_log('DIR:' . $dir . ' TAG: ' . $tag);
|
// error_log('DIR:' . $dir . ' TAG: ' . $tag);
|
||||||
$cache = new \Doctrine\Common\Cache\FilesystemCache($dir, $tag);
|
$cache = new \Doctrine\Common\Cache\FilesystemCache($dir, $tag);
|
||||||
return $cache;
|
return $cache;
|
||||||
|
|
Loading…
Reference in New Issue