From 3a95027a061ba4e688503f823598329165d14cb6 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 18 Aug 2020 15:48:32 +0800 Subject: [PATCH] cache in windows file --- common.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.php b/common.php index fdab089..6f8f3ff 100644 --- a/common.php +++ b/common.php @@ -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;