Fixed bug not taking memcache enabled into consideration.