Bug #86874

VariableFrontend treats all Backends like TaggableBackendInterface-Backends

Added by Alexander Schnitzler 11 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2018-11-07
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The SimpleFileBackend does not implement the TaggableBackendInterface but the VariableFrontend treats all Backends like TaggableBackendInterface-Backends.
Thus, the method getByTag fails with an exception when used with a SimpleFileBackend.

There is clearly no simple solution to it but it's a bummer when configuring a cache like this and trying to use tags. One approach to fix this is to remove the tag-related methods from the FrontendInterface, introduce a TaggableFrontendInterface and only let custom cache frontends implement the optional TaggableFrontendInterface.

Also available in: Atom PDF