Skip to content

Commit f5675f6

Browse files
committed
[SoapBundle] Set cache informations even though it is disabled
1 parent 15b208d commit f5675f6

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/BeSimple/SoapBundle/Cache.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@ public function __construct($cacheDisabled, $type, $directory, $lifetime = null,
2525

2626
BaseCache::setEnabled($isEnabled);
2727

28-
if (BaseCache::ENABLED == BaseCache::isEnabled()) {
29-
BaseCache::setType($type);
30-
BaseCache::setDirectory($directory);
28+
BaseCache::setType($type);
29+
BaseCache::setDirectory($directory);
3130

32-
if (null !== $lifetime) {
33-
BaseCache::setLifetime($lifetime);
34-
}
31+
if (null !== $lifetime) {
32+
BaseCache::setLifetime($lifetime);
33+
}
3534

36-
if (null !== $limit) {
37-
BaseCache::setLimit($limit);
38-
}
35+
if (null !== $limit) {
36+
BaseCache::setLimit($limit);
3937
}
4038
}
41-
}
39+
}

0 commit comments

Comments
 (0)