Invalidate memcache when instance is changed