Fixed clear_cache to actually clear the cache of all engines, as opposed to only local caches.