Last active
June 22, 2018 09:28
-
-
Save aertmann/8e3eb6736e9498c7144b to your computer and use it in GitHub Desktop.
Use Redis or Memcached cache backends for optimizing certain caches that has tags which become slow with lots of content in Neos – Included in https://speakerdeck.com/aertmann/tasty-recipes-for-every-day-neos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redis (has to be configured to different databases on shared hosting) | |
TYPO3_TypoScript_Content: | |
backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
backendOptions: | |
defaultLifetime: 0 | |
Flow_Mvc_Routing_Resolve: | |
backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
backendOptions: | |
defaultLifetime: 0 | |
Flow_Mvc_Routing_Route: | |
backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
backendOptions: | |
defaultLifetime: 0 | |
# Memcached (fits shared hosting) | |
TYPO3_TypoScript_Content: | |
backend: TYPO3\Flow\Cache\Backend\MemcachedBackend | |
backendOptions: | |
defaultLifetime: 0 | |
servers: | |
- '127.0.0.1:11211' | |
Flow_Mvc_Routing_Resolve: | |
backend: TYPO3\Flow\Cache\Backend\MemcachedBackend | |
backendOptions: | |
defaultLifetime: 0 | |
servers: | |
- '127.0.0.1:11211' | |
Flow_Mvc_Routing_Route: | |
backend: TYPO3\Flow\Cache\Backend\MemcachedBackend | |
backendOptions: | |
defaultLifetime: 0 | |
servers: | |
- '127.0.0.1:11211' | |
# Example of configuring different database for redis | |
TYPO3_TypoScript_Content: | |
backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
backendOptions: | |
database: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment