Skip to content

Commit

Permalink
Fix for cache files not being deleted when requested or expired
Browse files Browse the repository at this point in the history
Fix for #1138
  • Loading branch information
eSilverStrike committed Sep 22, 2022
1 parent fdbd12f commit 07ec2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/classes/template.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2147,8 +2147,8 @@ public function check_instance($iid, $fileVar)
function cache_clean_directories($path, $needle = '', $since = 0)
{
global $_CONF;

$lockFile = $_CONF['path_data'] . 'cache' . DIRECTORY_SEPARATOR . Template::LOCK_FILE;
$lockFile = $path . DIRECTORY_SEPARATOR . Template::LOCK_FILE;
if (is_readable($lockFile)) {
return -1;
}
Expand Down

0 comments on commit 07ec2c3

Please sign in to comment.