Ensure some cache folders & index.html exists

This commit is contained in:
slawkens
2025-11-02 12:21:29 +01:00
parent fd729242ff
commit 730a0f2912
5 changed files with 29 additions and 1 deletions

View File

@@ -53,6 +53,9 @@
exit;
}
ensureFolderExists(SIGNATURES_CACHE);
ensureIndexExists(SIGNATURES_CACHE);
$cached = SIGNATURES_CACHE.$player->getId() . '.png';
if(file_exists($cached) && (time() < (filemtime($cached) + (60 * setting('core.signature_cache_time')))))
{