Deprecation: #94665 - Wincache cache backend
See forge#94665
Description
The Caching Framework backend implementation \TYPO3\
is not maintained since Microsoft dropped its support: A PHP 7.4 compatible version
came long after PHP 7.4 release and there are no PHP 8.0 works in sight. This backend
in general found relatively little use and can be substituted with the well
maintained ApcuBackend key/value store on Windows platforms.
Wincache
has been marked as deprecated and should not be used anymore.
Impact
The implementation has been marked as deprecated, usages trigger a PHP E_
error.
Affected Installations
Some instances hosted on Windows platform may use this cache backend. This can be verified in the backend "Configuration" module, section "TYPO3_CONF_VARS", searching for string "WincacheBackend".
Migration
TYPO3 cache backend configuration is usually done in Local
.
Affected instances could switch to Apcu
if the apcu
PHP module
is loaded, or alternatively to some other backend like Redis
,
Memcached
or Typo3Database
, depending on the specific
cache size and usage characteristics.
Local
example before:
'SYS' => [
'caching' => [
'cacheConfigurations' => [
'aCache' => [
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\WincacheBackend',
...
Local
example after:
'SYS' => [
'caching' => [
'cacheConfigurations' => [
'aCache' => [
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\ApcuBackend',
...
In case this cache backend is still used for whatever reason and can't be dropped easily, the class should be copied to an own extension having an own namespace. The instance configuration needs to be adapted accordingly.