Fixing an issue with a variable clash that was leading to issues if memcached was enabled.