enable gallery's memcache