I am working on a fast caching system to work with a PHP framework. Basicly, all static pages don't need to be loaded with framework, so I wanted to use CURL. For the command line it works very fast:
$ curl http://www.example.com/en/terms-of-use.html > web/cache/en/terms-of-use.html
My current solution is getting the file data with curl, open/create a file and put all the data in that. I'm not very familiar with curl, but there should be a faster way I think if the CLI version is very short.