https://github.com/b13/graceful-cache
TYPO3 cache backends which do not always have to be enabled
https://github.com/b13/graceful-cache
Last synced: 6 months ago
JSON representation
TYPO3 cache backends which do not always have to be enabled
- Host: GitHub
- URL: https://github.com/b13/graceful-cache
- Owner: b13
- License: gpl-2.0
- Created: 2020-12-04T22:12:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T12:38:10.000Z (almost 2 years ago)
- Last Synced: 2025-12-01T09:03:25.251Z (7 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TYPO3 Extension with Graceful Cache Backends
We don't want our websites to be down because the cache
backend used, e.g. "redis" or "memcached" has a temporary
issue. Instead, the page should be loaded, but trigger
warnings and errors and such, but still render a page
without active caches.
For this reason, we provide Cache Backends which simply
catch all Exceptions.
We use this for High Availability projects, where a Redis
sentinel cluster is not available but a Redis service is running
on each application server to ensure that TYPO3 does never
throw a 50x HTTP error because of a caching issue.
## Installation
When running TYPO3 in Composer Mode `composer req b13/graceful-cache` or
download the extension "graceful_cache" via the Extension Manager
from extensions.typo3.org.
## Configuration
Use this in your LocalConfiguration.php or AdditionalConfiguration.php
to e.g. reconfigure the "pages" Cache (or "cache_pages" prior to TYPO3 v10)
to run with the graceful Redis Cache Backend:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages']['backend'] = \B13\GracefulCache\Backend\RedisCacheBackend::class;
Or configure with Memcached Cache Backend:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages']['backend'] = \B13\GracefulCache\Backend\MemcachedCacheBackend::class;
## License
The extension is licensed under GPL v2+, same as the TYPO3 Core. For details see the LICENSE file in this repository.
### Credits
This extension was created by [Benni Mack](https://github.com/bmack) in 2020 for [b13 GmbH](https://b13.com).
[Find more TYPO3 extensions we have developed](https://b13.com/useful-typo3-extensions-from-b13-to-you) that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.