From f15a87d8aa88456bd467e96c831b7cfa390a17cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 20 Dec 2018 13:43:55 +0100 Subject: [PATCH] repo.php: cache, create subdirs if necessary --- repo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/repo.php b/repo.php index c18ca2ec..73c033b9 100644 --- a/repo.php +++ b/repo.php @@ -92,6 +92,7 @@ Header("Content-Type: application/json; charset=utf-8"); print $ret; if ($cacheDir) { + @mkdir(dirname("{$cacheDir}/{$fullRepoId}")); file_put_contents("{$cacheDir}/{$fullRepoId}.json", $ret); touch("{$cacheDir}/{$fullRepoId}.json", $ts); }