Skip to content

Commit

Permalink
My fault
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Sep 26, 2023
1 parent 21bff97 commit 3b9feaf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions system/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1197,13 +1197,9 @@ function clearCache()
if ($cache->fetch('failed_logins', $tmp))
$cache->delete('failed_logins');

global $template_name;
if ($cache->fetch('template_ini' . $template_name, $tmp))
$cache->delete('template_ini' . $template_name);

foreach (get_templates() as $template) {
if ($cache->fetch('template_ini' . $template, $tmp)) {
$cache->delete('template_ini' . $template);
if ($cache->fetch('template_ini_' . $template, $tmp)) {
$cache->delete('template_ini_' . $template);
}
}

Expand Down

0 comments on commit 3b9feaf

Please sign in to comment.