@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | Event::on( |
81 | 81 | Elements::class, |
82 | 82 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
83 | - function (ElementEvent $event) { |
|
83 | + function(ElementEvent $event) { |
|
84 | 84 | Craft::debug( |
85 | 85 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
86 | 86 | __METHOD__ |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | // Only bust the cache if it's not certain excluded element types |
91 | 91 | if (self::$plugin->cache->shouldBustCache($element)) { |
92 | 92 | Craft::debug( |
93 | - 'Cache busted due to saving: ' . get_class($element) . ' - ' . $element->title, |
|
93 | + 'Cache busted due to saving: '.get_class($element).' - '.$element->title, |
|
94 | 94 | __METHOD__ |
95 | 95 | ); |
96 | 96 | FastcgiCacheBust::$plugin->cache->clearAll(); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | Event::on( |
102 | 102 | TemplateCaches::class, |
103 | 103 | TemplateCaches::EVENT_AFTER_DELETE_CACHES, |
104 | - static function (DeleteTemplateCachesEvent $event) { |
|
104 | + static function(DeleteTemplateCachesEvent $event) { |
|
105 | 105 | FastcgiCacheBust::$plugin->cache->clearAll(); |
106 | 106 | } |
107 | 107 | ); |
@@ -109,11 +109,11 @@ discard block |
||
109 | 109 | Event::on( |
110 | 110 | ClearCaches::class, |
111 | 111 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
112 | - static function (RegisterCacheOptionsEvent $event) { |
|
112 | + static function(RegisterCacheOptionsEvent $event) { |
|
113 | 113 | $event->options[] = [ |
114 | 114 | 'key' => 'fastcgi-cache-bust', |
115 | 115 | 'label' => Craft::t('fastcgi-cache-bust', 'FastCGI Cache'), |
116 | - 'action' => function () { |
|
116 | + 'action' => function() { |
|
117 | 117 | FastcgiCacheBust::$plugin->cache->clearAll(); |
118 | 118 | }, |
119 | 119 | ]; |