added check for php file in the GearmanCacheWrapper

The GearmanCacheWrapper looks at all the files in the bundle, including images and other stuff.
Then it checks for a classname as if they all were php files, hence this edit.