implement purge_cache
Merge branch 'purge-cache'