未验证 提交 3a95027a 编写于 作者: Q qkqpttgf 提交者: GitHub

cache in windows file

上级 cfda210f
......@@ -563,6 +563,10 @@ function filecache()
}
$tag = __DIR__ . '/OneManager/' . $_SERVER['disktag'];
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);
$cache = new \Doctrine\Common\Cache\FilesystemCache($dir, $tag);
return $cache;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册