Skip to content

Commit

Permalink
PageCache::getCachedHooks: check missing config
Browse files Browse the repository at this point in the history
  • Loading branch information
getdatakick committed Sep 27, 2018
1 parent 13b18f5 commit 9e8cccb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/PageCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ protected static function getKeysToInvalidate($entityType, $idEntity = null)
public static function getCachedHooks()
{
$hookSettings = json_decode(Configuration::get('TB_PAGE_CACHE_HOOKS'), true);
if (! is_array($hookSettings)) {
return [];
}

$cachedHooks = [];
foreach ($hookSettings as $idModule => $hookArr) {
$idModule = (int) $idModule;
Expand Down

0 comments on commit 9e8cccb

Please sign in to comment.