From af2565314de76b7568bf9a9e92c31000fd3cc96f Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 9 Jul 2024 17:14:54 +0200 Subject: [PATCH] add option to empty cache --- epub.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/epub.php b/epub.php index 00f72ee..6b1866c 100644 --- a/epub.php +++ b/epub.php @@ -114,6 +114,18 @@ date_default_timezone_set('Europe/Paris'); $date = (new DateTime('today'))->format('Ymd'); + if (isset($_POST['emptycache']) && $_POST['emptycache']) + { + $files = glob('temp/*'); + foreach($files as $file) + { + if(is_file($file)) + { + unlink($file); + } + } + } + // Cafeyn if (isset($_POST['cafeyn']) && $_POST['cafeyn']) { @@ -567,6 +579,10 @@

+ + +

+