Adding memcache check