Fixed cache key bug when using memcached