From 1e5624e2f3dfdfdf93f419474a8c7652033df710 Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Wed, 6 Dec 2017 19:45:45 +0100
Subject: [PATCH] [!!!][TASK] Remove cache_phpcode cache configuration

The "cache_phpcode" cache was used for having TYPO3's own-baked
DBAL layer running. As this is not installed nor shipped anymore, the cache
configuration should be removed.

Resolves: #83243
Releases: master
Change-Id: Ic1c48b4090d3744239bdeb51ce1d178baf10aa40
Reviewed-on: https://review.typo3.org/54949
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
---
 .../Configuration/DefaultConfiguration.php    |  8 ------
 ...RemovedCache_phpcodeCacheConfiguration.rst | 26 +++++++++++++++++++
 2 files changed, 26 insertions(+), 8 deletions(-)
 create mode 100644 typo3/sysext/core/Documentation/Changelog/master/Breaking-83243-RemovedCache_phpcodeCacheConfiguration.rst

diff --git a/typo3/sysext/core/Configuration/DefaultConfiguration.php b/typo3/sysext/core/Configuration/DefaultConfiguration.php
index e21a6051e85f..5fa2e1572bb0 100644
--- a/typo3/sysext/core/Configuration/DefaultConfiguration.php
+++ b/typo3/sysext/core/Configuration/DefaultConfiguration.php
@@ -132,14 +132,6 @@ return [
                     ],
                     'groups' => ['pages']
                 ],
-                'cache_phpcode' => [
-                    'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
-                    'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
-                    'options' => [
-                        'defaultLifetime' => 0,
-                    ],
-                    'groups' => ['system']
-                ],
                 'cache_runtime' => [
                     'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
                     'backend' => \TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend::class,
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-83243-RemovedCache_phpcodeCacheConfiguration.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-83243-RemovedCache_phpcodeCacheConfiguration.rst
new file mode 100644
index 000000000000..fc08c2ee0284
--- /dev/null
+++ b/typo3/sysext/core/Documentation/Changelog/master/Breaking-83243-RemovedCache_phpcodeCacheConfiguration.rst
@@ -0,0 +1,26 @@
+.. include:: ../../Includes.txt
+
+============================================================
+Breaking: #83243 - Removed cache_phpcode cache configuration
+============================================================
+
+See :issue:`83243`
+
+Description
+===========
+
+The Caching Framework configuration for `cache_phpcode` is unused since TYPO3 6.0 and has been removed without substitution.
+
+
+Impact
+======
+
+Using `cache_phpcode` will throw a `NoSuchCacheException`.
+
+
+Affected Installations
+======================
+
+Every installation using a 3rd party extension that still relies on `cache_phpcode` is affected.
+
+.. index:: PHP-API, NotScanned
\ No newline at end of file
-- 
GitLab