1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

#4784 Fixes LiteSpeed compatibility with mod-rewrite flag. Corrected 'cache_clear' event trigger.

This commit is contained in:
Cameron
2022-06-02 13:46:15 -07:00
parent 5ddc27766d
commit 7c31d17f25
2 changed files with 10 additions and 3 deletions

View File

@@ -284,6 +284,7 @@ class ecache {
$file = ($CacheTag) ? preg_replace("#\W#", "_", $CacheTag)."*.cache.php" : "*.cache.php";
e107::getEvent()->triggerAdminEvent('cache_clear', "cachetag=$CacheTag&file=$file&syscache=$syscache");
e107::getEvent()->trigger('cache_clear', ['tag'=>$CacheTag, 'file'=>$file, 'system'=>$syscache]);
$ret = self::delete(e_CACHE_CONTENT, $file, $syscache);
if($CacheTag && $related) //TODO - too dirty - add it to the $file pattern above