PHP Caching Class