Skip to content
Permalink
Browse files

Change 'DomainCacheable' check

  • Loading branch information
lochmueller committed Oct 8, 2018
1 parent 9dd2cd9 commit 7712336e802af1e488606d0e1fea8048ba611949
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/Cache/Rule/DomainCacheable.php
@@ -30,7 +30,7 @@ public function checkRule(TypoScriptFrontendController $frontendController, stri
$domainString = \parse_url($uri, PHP_URL_HOST);
$domainRepository = GeneralUtility::makeInstance(DomainRepository::class);
$domain = $domainRepository->findOneByDomainName($domainString);
if (!empty($domain)) {
if (is_array($domain) && array_key_exists('tx_staticfilecache_cache', $domain)) {
$cachableDomain = (bool)$domain['tx_staticfilecache_cache'];
if (!$cachableDomain) {
$explanation[__CLASS__] = 'static cache disabled on domain: ' . $domainString;

0 comments on commit 7712336

Please sign in to comment.
You can’t perform that action at this time.