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

Also available in: Atom PDF