|
Project Information
Links
|
Keepitclose is a simple HTTP caching web service written in PHP to avoid accessing external resources (such as feeds) often, without having to change the application making the request (other than changing the URL). The current alpha version supports caching to shared memory through APC and caching to one or more memcache servers. The project is currently in alpha and should not be used in any production environment without being fully aware of the risks. To get started: - Check out the current trunk
- Add a VirtualHost to your Apache configuration to point to the www/ directory as the root directory in the VirtualHost. THIS IS IMPORTANT. The service has been written to not expose any unneeded files through the web server.
- The current version uses .htaccess to add a autoPrepend file, but there's a simple constant check and require_once in index.php to work anyways. Should work under httpd's that does not support .htaccess and php_value.
- '''config.php''' in config/ contains a simple example of configuration directives. APC and Memcache are supported as backends in the first alpha version. APC lives in the current HTTPD memory space, Memcache supports distributed clients connecting to a central memory based server.
- Use your HTTPD to limit access to the caching service. The project includes rudimentary access control support, see the 'allowedHosts' key in '''config.php''' (which is a regular expression to match the host against).
- Access the resource through http://<your.caching.server.host>/?url=http://www.example.com/resource.xml
|