Add method for clearing model cache.