Task #90516

RootlineUtility::purgeCaches contains note that function is only intended for unit tests but it is being used

Added by Sybille Peters over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2020-02-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

/**
 * Purges all rootline caches.
 *
 * Note: This function is intended to be used in unit tests only.
 */
public static function purgeCaches()
{
    self::$localCache = [];
    self::$pageRecordCache = [];
}

typo3/sysext/core/Classes/DataHandling/SlugHelper.php:        RootlineUtility::purgeCaches();
typo3/sysext/core/Classes/Routing/SiteMatcher.php:        RootlineUtility::purgeCaches();

So, maybe remove the note or check if it's ok to use the function?

#1

Updated by Georg Ringer over 1 year ago

  • Category changed from Caching to Documentation
#2

Updated by Gerrit Code Review over 1 year 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/+/63442

#3

Updated by Gerrit Code Review over 1 year ago

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

#4

Updated by Georg Ringer over 1 year ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF