added possibility to clear the cache