Nette FileStorage 요구 주소 문제

This commit is contained in:
2024-05-22 16:45:29 +00:00
parent a3d7ef30dd
commit 3470817e9e
+9 -1
View File
@@ -19,7 +19,15 @@ if(!prepareDir('data/file_cache')){
]);
}
$storage = new \Nette\Caching\Storages\FileStorage('data/file_cache');
$absolutePath = realpath('data/file_cache');
if(!$absolutePath){
Json::die([
'result'=>false,
'reason'=>'cache 불가'
]);
}
$storage = new \Nette\Caching\Storages\FileStorage($absolutePath);
$cache = new Cache($storage);
$serverID = UniqueConst::$serverID;