[调整]修改默认缓存目录

This commit is contained in:
Anyon 2018-04-19 17:26:22 +08:00
parent a89b7fc761
commit 6c528089c8

View File

@ -306,7 +306,7 @@ class Tools
private static function getCacheName($name)
{
if (empty(self::$cache_path)) {
self::$cache_path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Cache' . DIRECTORY_SEPARATOR;
self::$cache_path = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'Cache' . DIRECTORY_SEPARATOR;
}
self::$cache_path = rtrim(self::$cache_path, '/\\') . DIRECTORY_SEPARATOR;
file_exists(self::$cache_path) || mkdir(self::$cache_path, 0755, true);