Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix cache key usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Apr 8, 2017
1 parent 31f43d9 commit 572f653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/modules/core/classes/FrontendTemplate.php
Expand Up @@ -213,7 +213,7 @@ protected function addToCache()
// If the request string is empty, use a special cache tag which considers the page language
if (\Environment::get('request') == '' || \Environment::get('request') == 'index.php')
{
$strCacheKey = \Environment::get('host') . '/empty.' . $objPage->language;
$strCacheKey = ($objPage->domain ?: '*') . '/empty.' . $objPage->language;
}
else
{
Expand Down Expand Up @@ -251,7 +251,7 @@ protected function addToCache()
$strHeader = sprintf
(
"<?php /* %s */ \$expire = %d; \$content = %s; \$type = %s; \$files = %s; \$assets = %s; ?>\n",
$strCacheKey,
ltrim($strCacheKey, '*'),
(int) $intCache,
var_export($this->strContentType, true),
var_export($objPage->type, true),
Expand Down

0 comments on commit 572f653

Please sign in to comment.