Issue Task Closed

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

Sybille Peters 02/24/20, 11:42 updated 02/27/20, 12:44

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?

Reviews 2