@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | // Constants |
36 | 36 | // ========================================================================= |
37 | 37 | |
38 | - const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE . EditableTemplate::TEMPLATE_TYPE; |
|
38 | + const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE.EditableTemplate::TEMPLATE_TYPE; |
|
39 | 39 | |
40 | 40 | const HUMANS_TXT_HANDLE = 'humans'; |
41 | 41 | const ROBOTS_TXT_HANDLE = 'robots'; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | Event::on( |
111 | 111 | UrlManager::class, |
112 | 112 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
113 | - function (RegisterUrlRulesEvent $event) { |
|
113 | + function(RegisterUrlRulesEvent $event) { |
|
114 | 114 | Craft::debug( |
115 | 115 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
116 | 116 | __METHOD__ |
@@ -165,16 +165,16 @@ discard block |
||
165 | 165 | $dependency = new TagDependency([ |
166 | 166 | 'tags' => [ |
167 | 167 | self::GLOBAL_FRONTENDTEMPLATE_CACHE_TAG, |
168 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template, |
|
169 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template . $siteId, |
|
168 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template, |
|
169 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template.$siteId, |
|
170 | 170 | ], |
171 | 171 | ]); |
172 | 172 | $cache = Craft::$app->getCache(); |
173 | 173 | $html = $cache->getOrSet( |
174 | - self::CACHE_KEY . $template . $siteId, |
|
175 | - function () use ($template, $params) { |
|
174 | + self::CACHE_KEY.$template.$siteId, |
|
175 | + function() use ($template, $params) { |
|
176 | 176 | Craft::info( |
177 | - 'Frontend template cache miss: ' . $template, |
|
177 | + 'Frontend template cache miss: '.$template, |
|
178 | 178 | __METHOD__ |
179 | 179 | ); |
180 | 180 | $html = ''; |
@@ -245,9 +245,9 @@ discard block |
||
245 | 245 | public function invalidateFrontendTemplateCache(string $template) |
246 | 246 | { |
247 | 247 | $cache = Craft::$app->getCache(); |
248 | - TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG . $template); |
|
248 | + TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG.$template); |
|
249 | 249 | Craft::info( |
250 | - 'Frontend template cache cleared: ' . $template, |
|
250 | + 'Frontend template cache cleared: '.$template, |
|
251 | 251 | __METHOD__ |
252 | 252 | ); |
253 | 253 | } |