HTTP request logging with PHP - MySQL - Memcached