Fixing a bug in the purge cache code which was meaning we weren't always starting with an empty cache.