diff --git a/typo3/sysext/core/Classes/Cache/Backend/ApcBackend.php b/typo3/sysext/core/Classes/Cache/Backend/ApcBackend.php index dd51ab2f2d664a4613493cc62f52903349cf4edc..dc6cfa28875331974e8043fb7db0b11d79777adc 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/ApcBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/ApcBackend.php @@ -14,6 +14,8 @@ namespace TYPO3\CMS\Core\Cache\Backend; * The TYPO3 project - inspiring people to share! */ +use TYPO3\CMS\Core\Utility\GeneralUtility; + /** * A caching backend which stores cache entries by using APC. * @@ -144,7 +146,8 @@ class ApcBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend implement $this->removeIdentifierFromAllTags($entryIdentifier); $this->addIdentifierToTags($entryIdentifier, $tags); } else { - throw new \TYPO3\CMS\Core\Cache\Exception('Could not set value.', 1232986877); + $errorMessage = 'Error using APCu: Could not save data in the cache.'; + GeneralUtility::sysLog($errorMessage, 'core', GeneralUtility::SYSLOG_SEVERITY_ERROR); } } diff --git a/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php b/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php index 445d5cbabba77ca79ba6a00f1a8c3705895ac9d5..3e550b13bd4b65c448785262f23aa633b7e05803 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php @@ -13,6 +13,7 @@ namespace TYPO3\CMS\Core\Cache\Backend; * * The TYPO3 project - inspiring people to share! */ + use TYPO3\CMS\Core\Cache; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -145,7 +146,8 @@ class ApcuBackend extends AbstractBackend implements TaggableBackendInterface $this->removeIdentifierFromAllTags($entryIdentifier); $this->addIdentifierToTags($entryIdentifier, $tags); } else { - throw new Cache\Exception('Could not set value.', 1232986277); + $errorMessage = 'Error using APCu: Could not save data in the cache.'; + GeneralUtility::sysLog($errorMessage, 'core', GeneralUtility::SYSLOG_SEVERITY_ERROR); } }