Skip to content

Commit

Permalink
Revert "[TASK] Configure frontend caches with NullBackend (#321)"
Browse files Browse the repository at this point in the history
This reverts commit c32fe20.

Setting some cache configurations to NullBackend needs adoption
in core tests. Therefore, the backport to set the new caches to
NulLBackend is reverted.

The removed non-existing `extbase_object` NullBackend configuration
stays removed.
  • Loading branch information
sbuerk committed Aug 2, 2023
1 parent c32fe20 commit 2e07f8f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Classes/Core/Functional/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Psr\Container\ContainerInterface;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Cache\Backend\NullBackend;
use TYPO3\CMS\Core\Context\Context;
use TYPO3\CMS\Core\Context\UserAspect;
use TYPO3\CMS\Core\Core\Bootstrap;
Expand Down Expand Up @@ -373,14 +374,6 @@ protected function setUp(): void
$localConfiguration['SYS']['trustedHostsPattern'] = '.*';
$localConfiguration['SYS']['encryptionKey'] = 'i-am-not-a-secure-encryption-key';
$localConfiguration['GFX']['processor'] = 'GraphicsMagick';
// Set cache backends to null backend instead of database backend let us save time for creating
// database schema for it and reduces selects/inserts to the database for cache operations, which
// are generally not really needed for functional tests. Specific tests may restore this in if needed.
$localConfiguration['SYS']['caching']['cacheConfigurations']['hash']['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend';
$localConfiguration['SYS']['caching']['cacheConfigurations']['imagesizes']['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend';
$localConfiguration['SYS']['caching']['cacheConfigurations']['pages']['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend';
$localConfiguration['SYS']['caching']['cacheConfigurations']['pagesection']['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend';
$localConfiguration['SYS']['caching']['cacheConfigurations']['rootline']['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend';
$testbase->setUpLocalConfiguration($this->instancePath, $localConfiguration, $this->configurationToUseInTestInstance);
$defaultCoreExtensionsToLoad = [
'core',
Expand Down

0 comments on commit 2e07f8f

Please sign in to comment.