[TYPO3-core] CachingFramework Backens without experiation with tags

Christian Kuhn lolli at schwarzbu.ch
Mon Jan 20 13:17:13 CET 2014


Hey,

On 01/17/2014 10:42 AM, Georg Ringer wrote:
> I stumbled over the issue that no implementation of a CF-Backend uses
> the expiration if saving tags.
>
> e.g. ApcBackend
> The method set() calls
> ---------
> $success = apc_store($this->getIdentifierPrefix() . $entryIdentifier,
> $data, $expiration);
> ---------
>
> but it also calls then
> --------
> $this->addIdentifierToTags($entryIdentifier, $tags);

Yeah. Tags can be bound to multiple identifiers. To have expires on tag 
entries, all other identifier entries would have to be fetched to 
calculate the longest lifetime. This is one reason why key-value stores 
are not well suited if used with heavy tagging.

Regards
Christian


More information about the TYPO3-team-core mailing list