Clear caches when queue empties