Browse Source

repo.php: cache, create subdirs if necessary

master
parent
commit
f15a87d8aa
  1. 1
      repo.php

1
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);
}
Loading…
Cancel
Save