clear memory cache on save