- Issue created by @elc
- Merge request !13[#3523283] Build lifespan options array only when it's used. → (Merged) created by elc
- Merge request !14[#3523283] Build lifespan options array only when it's used. → (Merged) created by elc
The $this->lifespanOptions
property of the AdvancedViewsCache plugin is built every time the object is instantiated, but only used when an admin is looking at the cache configuration form built by ::buildLifespanOptions().
As it stands, every time a view is cached using this plugin, the build code is run but the result not used.
Build the lifespan options inside ::buildLifespanOptions() instead of the constructor.
Needs work
2.0
Code