fix: file_cache 문제 추가 수정

This commit is contained in:
Hide_D committed 2024-05-22 16:47:20 +00:00
1 parent 3470817e9e
commit 68cd61d86e
2 files changed
+9 -1

No files matched your search

+5 -1
View File
@@ -55,7 +55,11 @@ class GetCachedMap extends \sammo\BaseAPI
return 'cache 불가';
}
$storage = new \Nette\Caching\Storages\FileStorage('data/file_cache');
$absolutePath = realpath('data/file_cache');
if (!$absolutePath) {
return 'cache 불가';
}
$storage = new \Nette\Caching\Storages\FileStorage($absolutePath);
$cache = new Cache($storage);
$now = TimeUtil::nowDateTimeImmutable();