Bug #88512

Flaws in accessing deprecated caches starting with "cache_"

Added by Oliver Hader about 1 month ago. Updated 27 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Caching
Start date:
2019-06-06
Due date:
% Done:

100%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In #88366 the cache_ prefix has been deprecated. However, when retrieving a deprecated cache like cache_subject its identifier gets transformed to subject which is (probably) not available in cache configuration keys. That's why keys of cache configurations have to be transformed as well.

This behavior is reproducible with

  • typo3/cms-core@3ea9c996363acd578a304630857314d427506c80
  • georgringer/news@4582db9927b93a282634a23ebd84e1354386b52c
(1/1) #1203699034 TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
A cache with identifier "news_category" does not exist.

Related issues

Related to TYPO3 Core - Task #88366: Streamline caching framework caches Resolved 2019-05-15

Associated revisions

Revision 972df083 (diff)
Added by Oliver Hader 27 days ago

[BUGFIX] Remove "cache_" prefix from cache configuration keys

With #88366 "cache_" prefix has been deprecated. However, when
retrieving a deprecated cache like "cache_subject" its identifier
gets transformed to just "subject" which is (probably) not available
in cache configuration keys. That's why keys of cache configurations
have to be transformed as well.

Resolves: #88512
Releases: master
Change-Id: I224d55e71011a437ed2e990d13b1edbee08770b7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60892
Tested-by: TYPO3com <>
Tested-by: Benni Mack <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Benni Mack <>
Reviewed-by: Andreas Fernandez <>

History

#1 Updated by Oliver Hader about 1 month ago

  • Target version set to Candidate for Major Version

#2 Updated by Oliver Hader about 1 month ago

  • Related to Task #88366: Streamline caching framework caches added

#3 Updated by Oliver Hader about 1 month ago

  • Description updated (diff)

#4 Updated by Gerrit Code Review about 1 month ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60892

#5 Updated by Oliver Hader 27 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF