romm / configuration_object

Transform any configuration plain array into a dynamic and configurable object structure, and pull apart configuration handling from the main logic of your script. Use provided services to add more functionality to your objects: cache, parents, persistence and much more.
GNU General Public License v3.0
6 stars 4 forks source link

[BUGFIX] Fix incorrect cache handling #12

Closed romm closed 7 years ago

romm commented 7 years ago

This commit refactors a major part of how "dynamic" caches were handled by Configuration Object API. In the provided cache service that can be attached to a configuration object, it is possible to declare the options for this cache; it means the cache is registered long after TYPO3 initialization, resulting in issues like caches entries not being deleted on caches flush.

A new internal cache service has been introduced, which will handle these "dynamic" caches: when one of these caches is used, its configuration is saved in the internal cache: in further request, the cache will be properly registered during TYPO3 initialization.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.3%) to 95.828% when pulling d1043c43e928a743a474053d815cb61f137b1c8f on bugfix-cache-handling into f809006c79a00b9d39fe34e573857db5020938ba on development.