Fixes an issue with sessions - memcache was used even if not available.