? Success

User tests: Successful: Unsuccessful:

avatar garyamort
garyamort
21 Oct 2013

...less of whether the cache is enabled or disabled. This will cause problems if the caching mechanism it is using are not configured properly[since they aren't being used!]. Joomla defaults to the first enabled caching method it finds, regardless of whether it is configured properly - thus throwing errors and warnings when cleaning cache.

This hack will switch to file caching if caching is disabled to avoid these issues.

avatar garyamort garyamort - open - 21 Oct 2013
avatar garyamort
garyamort - comment - 21 Oct 2013

See http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=20476&start=0 for how making calls to disabled cache handlers can cause problems. In 3.2 there is no option for file cache handling so if the XCache extension is installed, Joomla is configured to use the XCache hander and caching is disabled.. afterwards making it impossible to save config changes due to the cache.

This hack switches to the file cache handler when caching is disabled to avoid broken calls to cache methods the user didn't want to enable to begin with.

avatar garyamort garyamort - close - 24 Oct 2013
avatar garyamort
garyamort - comment - 24 Oct 2013

It strikes me that this code can be fixed in the XCache connector to check the php.ini config and not even list itself as an option when it is not configured.

Add a Comment

Login with GitHub to post a comment