If prebuild starts, but can’t cache pages usually there are multiple cache layers (eg: Varnish, Nginx/FastCGI cache) which is not configured properly. First please consider to use only one caching solution, however if you would like to use multiple caches, please be sure they are configured properly in Swift.

For Cloudflare please configure API in Settings > CDN > Cloudflare

For Varnish enable Autopurge in Caching > Varnish
If it is necessary, please set Custom Host (in most cases it is 127.0.0.1)