Project

General

Profile

Actions

Task #90516

closed

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

Added by Sybille Peters about 4 years ago. Updated about 4 years 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?

Actions #1

Updated by Georg Ringer about 4 years ago

  • Category changed from Caching to Documentation
Actions #2

Updated by Gerrit Code Review about 4 years 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

Actions #3

Updated by Gerrit Code Review about 4 years 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

Actions #4

Updated by Georg Ringer about 4 years ago

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

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF