@@ -49,7 +49,7 @@ |
||
49 | 49 | Craft::info( |
50 | 50 | Craft::t( |
51 | 51 | 'fastcgi-cache-bust', |
52 | - 'FastCGI Cache busted: `' . $cacheDir |
|
52 | + 'FastCGI Cache busted: `'.$cacheDir |
|
53 | 53 | ), |
54 | 54 | __METHOD__ |
55 | 55 | ); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | Event::on( |
91 | 91 | Elements::class, |
92 | 92 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
93 | - function (ElementEvent $event) { |
|
93 | + function(ElementEvent $event) { |
|
94 | 94 | Craft::debug( |
95 | 95 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
96 | 96 | __METHOD__ |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | // Only bust the cache if it's not certain excluded element types |
101 | 101 | if ($this->shouldBustCache($element)) { |
102 | 102 | Craft::debug( |
103 | - 'Cache busted due to saving: ' . get_class($element) . ' - ' . $element->title, |
|
103 | + 'Cache busted due to saving: '.get_class($element).' - '.$element->title, |
|
104 | 104 | __METHOD__ |
105 | 105 | ); |
106 | 106 | FastcgiCacheBust::$plugin->cache->clearAll(); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | Event::on( |
112 | 112 | TemplateCaches::class, |
113 | 113 | TemplateCaches::EVENT_AFTER_DELETE_CACHES, |
114 | - static function (DeleteTemplateCachesEvent $event) { |
|
114 | + static function(DeleteTemplateCachesEvent $event) { |
|
115 | 115 | FastcgiCacheBust::$plugin->cache->clearAll(); |
116 | 116 | } |
117 | 117 | ); |
@@ -119,11 +119,11 @@ discard block |
||
119 | 119 | Event::on( |
120 | 120 | ClearCaches::class, |
121 | 121 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
122 | - static function (RegisterCacheOptionsEvent $event) { |
|
122 | + static function(RegisterCacheOptionsEvent $event) { |
|
123 | 123 | $event->options[] = [ |
124 | 124 | 'key' => 'fastcgi-cache-bust', |
125 | 125 | 'label' => Craft::t('fastcgi-cache-bust', 'FastCGI Cache'), |
126 | - 'action' => function () { |
|
126 | + 'action' => function() { |
|
127 | 127 | FastcgiCacheBust::$plugin->cache->clearAll(); |
128 | 128 | }, |
129 | 129 | ]; |