proxy_cache_purge leads to an error on travis. could it be that you need to install some nginx extension for this?