Skip to content

Commit 2ecc9d8

Browse files
committed
More documentation
1 parent 5f88fe1 commit 2ecc9d8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ In addition, the Cache itself has a new Interface it can implement and tell this
1212

1313
After the fallback period the cache on the primary system is outdated and has to be cleared!
1414

15+
# Recommendation
16+
17+
It is recommended to set
18+
```PHP
19+
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][CacheManager::class] = [ 'className' => \Weakbit\FallbackCache\Cache\CacheManager::class ];
20+
```
21+
in additional.php or the equivalent settings.php file.
22+
23+
This ensures the override is applied early and reliably, avoiding issues with loading order or race conditions that can occur if set in extension files like ext_localconf.php.
24+
1525
## Example
1626
This defines a pages cache with the fallback cache: pages_fallback.
1727

0 commit comments

Comments
 (0)