You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set cache handler to CacheLite in Global Configurations.
Expected result
The options passed to the Cache object constructor should overwrite the options in Global Configurations. For instance if caching is off then caching should still work because caching is set to 1 in the options.
Actual result
Options passed to the Constructor are widely ignored. If caching is turned off in Global Configurations then no caching occurs. If it is turned on then the lifetime in Global Configurations is used.
I can get it to work by setting:
$cache->setCaching(1);
$cache->setLifeTime(60 * 60 * 60);
But then checkTime is ignored and cache is created every time instead of using the existing cache.
If caching is turned on in Global Configurations then everything works as expected.
System information (as much as possible)
Windows 7
Joomla 3.6.6
PHP 5.4.34
Chrome
Additional comments
The text was updated successfully, but these errors were encountered:
Steps to reproduce the issue
Create a cache object using JCache::getInstance(), for eg.;
$options = array(
'defaultgroup' => 'custom_group',
'checkTime' => TRUE,
'caching' => 1,
'application' => 'site',
'language' => 'en-GB',
'lifetime' => 60 * 60 * 60
);
$cache = JCache::getInstance($options);
Set cache handler to CacheLite in Global Configurations.
Expected result
The options passed to the Cache object constructor should overwrite the options in Global Configurations. For instance if caching is off then caching should still work because caching is set to 1 in the options.
Actual result
Options passed to the Constructor are widely ignored. If caching is turned off in Global Configurations then no caching occurs. If it is turned on then the lifetime in Global Configurations is used.
I can get it to work by setting:
$cache->setCaching(1);
$cache->setLifeTime(60 * 60 * 60);
But then checkTime is ignored and cache is created every time instead of using the existing cache.
If caching is turned on in Global Configurations then everything works as expected.
System information (as much as possible)
Windows 7
Joomla 3.6.6
PHP 5.4.34
Chrome
Additional comments
The text was updated successfully, but these errors were encountered: