[SoapBundle] Set cache informations even though it is disabled

This commit is contained in:
Francis Besset 2014-08-15 19:43:31 +02:00
parent 15b208d861
commit f5675f6ece
1 changed files with 8 additions and 10 deletions

View File

@ -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);
}
}
}