Added method to clear all caches