[TASK] Add default TypoScript setting for extbase query cache
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Typo3QuerySettings.php
index 6f6ebaa..dde6283 100644 (file)
@@ -407,7 +407,7 @@ class Typo3QuerySettings implements QuerySettingsInterface {
         * @return QuerySettingsInterface
         */
        public function useQueryCache($useQueryCache) {
-               $this->useQueryCache = $useQueryCache;
+               $this->useQueryCache = (bool)$useQueryCache;
                return $this;
        }
 
@@ -415,6 +415,6 @@ class Typo3QuerySettings implements QuerySettingsInterface {
         * @return bool
         */
        public function getUseQueryCache() {
-               return (bool)$this->useQueryCache;
+               return $this->useQueryCache;
        }
 }