purge cache before build