Changed deleting caches.