Do not die anymore when memcached cannot be reached to store a query
authorXavier Perseguers <typo3@perseguers.ch>
Tue, 21 Sep 2010 16:46:57 +0000 (16:46 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Tue, 21 Sep 2010 16:46:57 +0000 (16:46 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@38418 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/class.ux_t3lib_db.php

index 378aea9..379c48f 100644 (file)
@@ -1369,7 +1369,13 @@ class ux_t3lib_DB extends t3lib_DB {
 
                        $precompiledParts = $this->precompileSELECTquery($queryComponents);
                        if ($this->queryCache) {
-                               $this->queryCache->set($cacheKey, $precompiledParts);
+                               try {
+                                       $this->queryCache->set($cacheKey, $precompiledParts);
+                               } catch (t3lib_cache_Exception $e) {
+                                       if ($this->debug) {
+                                               t3lib_div::devLog($e->getMessage(), 'dbal', 1);
+                                       }
+                               }
                        }
                }