added cleaning of cache