From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1683629240; bh=YG/95ppeHuVMM1cAg8jQloN5v3hmJqbMOVG/lfhCiG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=rg2q6J5lVDAS2dqQSdmnSAq5JkHaFlT+jPtpypz+QLwrTk9uxJ+F8mKpmqiy0PUPN ZUSbM1OAVJu+wReyy1glVYezLUnY5uqd7hpG4t/Chj5ed9L1gP3dghTQU/EGN6mKns ssXfMu9jmdGzzAB269Sb2D2WQ8wCSlQTGqu3OolsWu4assz6rh96AA9iIE3uVi6PmL vLcR/+NSiwJbCpQu51t9lEHKruawNrxoRoJ22+iXEsdVJa7oLFxu6Y+2cYb+X0dvE+ gza5MwjjvRJfbvFJ2OcHzVTTed6mDuhl2Y5teAI5WD2eB43q2Wuoshhb6dawkYJcYU e/TXePzlbVIxg== Received: from localhost.localdomain (unknown [128.199.192.202]) by gnuweeb.org (Postfix) with ESMTPSA id B510C245BC9; Tue, 9 May 2023 17:47:18 +0700 (WIB) From: Ammar Faizi To: GNU/Weeb FB Team Cc: Ammar Faizi , GNU/Weeb Mailing List , Michael William Jonathan Subject: [PATCH fb v1 6/6] fb: web: Create cron.php to clear cache Date: Tue, 9 May 2023 17:46:58 +0700 Message-Id: <20230509104658.70953-7-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230509104658.70953-1-ammarfaizi2@gnuweeb.org> References: <20230509104658.70953-1-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Allow the server to clear expired caches via a small PHP script, cron.php. Periodically calling clearExpiredCaches() will delete old expired caches, it saves storage space. Signed-off-by: Ammar Faizi --- web/cron.php | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 web/cron.php diff --git a/web/cron.php b/web/cron.php new file mode 100644 index 0000000000000000..bc183bedea9f4062 --- /dev/null +++ b/web/cron.php @@ -0,0 +1,9 @@ +clearExpiredCaches(); -- Ammar Faizi