fix: file_cache 문제 추가 수정

This commit is contained in:
2024-05-22 16:47:20 +00:00
parent 3470817e9e
commit 68cd61d86e
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -288,6 +288,10 @@ class GetConst extends \sammo\BaseAPI
if (!prepareDir($cacheDir)) {
throw new RuntimeException('cache 폴더 없음');
}
$absolutePath = realpath($cacheDir);
if (!$absolutePath) {
throw new RuntimeException('cache 폴더 없음');
}
$storage = new \Nette\Caching\Storages\FileStorage($cacheDir);
$cache = new Cache($storage);