From 3470817e9e95c1e2dc8d2333a1cd479918a6a90c Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 22 May 2024 16:45:21 +0000 Subject: [PATCH] =?UTF-8?q?Nette=20FileStorage=20=EC=9A=94=EA=B5=AC=20?= =?UTF-8?q?=EC=A3=BC=EC=86=8C=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_map_recent.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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;