mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[调整]修改默认缓存目录
This commit is contained in:
parent
a89b7fc761
commit
6c528089c8
@ -306,7 +306,7 @@ class Tools
|
|||||||
private static function getCacheName($name)
|
private static function getCacheName($name)
|
||||||
{
|
{
|
||||||
if (empty(self::$cache_path)) {
|
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;
|
self::$cache_path = rtrim(self::$cache_path, '/\\') . DIRECTORY_SEPARATOR;
|
||||||
file_exists(self::$cache_path) || mkdir(self::$cache_path, 0755, true);
|
file_exists(self::$cache_path) || mkdir(self::$cache_path, 0755, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user