diff --git a/hwe/j_map_recent.php b/hwe/j_map_recent.php index f24d0106..977540ba 100644 --- a/hwe/j_map_recent.php +++ b/hwe/j_map_recent.php @@ -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;