OLD caching stuff with Curl