HTTP Caching

HTTP Caching

In this case, HTTP Caching means ETag method.

So you shouldn’t use this, if your requests always return different results.
Considering whthere you use this function.

Make caching directory

You can make the directory anywhere you want. Make sure the directory is writable.

We haven’t prepare garbage collection. Please clean up the directory yourself, or you can use /tmp/ as the caching directory.

Specify caching location using Tuitter::setHttpCache method.

$tuitter->setHttpCache(new Tuitter_Cache_File('/path/to/dir/'));