added the possibility to clean the cache