From d8d2e39a746049a924465ed72b9ce8699211025b Mon Sep 17 00:00:00 2001 From: Bofh Date: Sat, 3 Dec 2022 17:05:38 +0100 Subject: [PATCH] Little bug fix --- base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base.php b/base.php index 4914183..7deb71a 100644 --- a/base.php +++ b/base.php @@ -292,7 +292,8 @@ function content_cache__exists($key) { $cache_file = $cache_dir.'/'.$fil; $ps = explode(',',$fil); array_splice($ps, 0, 1); - $ps[1] = intval($ps[1]); + if ($ps[0] !== 'always' && count($ps) > 1) + $ps[1] = intval($ps[1]); return (object)[ 'file' => $cache_file, 'config' => $ps