From f5675f6ece20f18db4049c4e440fd214621b316f Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Fri, 15 Aug 2014 19:43:31 +0200 Subject: [PATCH] [SoapBundle] Set cache informations even though it is disabled --- src/BeSimple/SoapBundle/Cache.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/BeSimple/SoapBundle/Cache.php b/src/BeSimple/SoapBundle/Cache.php index e1c6cf0..fe5621f 100644 --- a/src/BeSimple/SoapBundle/Cache.php +++ b/src/BeSimple/SoapBundle/Cache.php @@ -25,17 +25,15 @@ class Cache BaseCache::setEnabled($isEnabled); - if (BaseCache::ENABLED == BaseCache::isEnabled()) { - BaseCache::setType($type); - BaseCache::setDirectory($directory); + BaseCache::setType($type); + BaseCache::setDirectory($directory); - if (null !== $lifetime) { - BaseCache::setLifetime($lifetime); - } + if (null !== $lifetime) { + BaseCache::setLifetime($lifetime); + } - if (null !== $limit) { - BaseCache::setLimit($limit); - } + if (null !== $limit) { + BaseCache::setLimit($limit); } } -} \ No newline at end of file +}