added public method to invalidate cache