Skip to content

Commit

Permalink
Fix coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
kporras07 committed Nov 25, 2022
1 parent e8082f1 commit 9022d4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CacheTagsInvalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class CacheTagsInvalidator implements CacheTagsInvalidatorInterface {
*/
protected $requestStack;

/**
* Construct.
*/
public function __construct(RequestStack $request_stack) {
$this->requestStack = $request_stack;
}
Expand All @@ -26,7 +29,8 @@ public function __construct(RequestStack $request_stack) {
*/
public function invalidateTags(array $tags) {
$do_not_run_urls = [
// There is a weird interaction with metatag that clear local_tasks key and therefore lots of cached pages.
// There is a weird interaction with metatag that clear local_tasks key
// and therefore lots of cached pages.
'/core/install.php',
];
if (in_array($this->requestStack->getCurrentRequest()->getBaseUrl(), $do_not_run_urls)) {
Expand Down

0 comments on commit 9022d4e

Please sign in to comment.