getFullPath(); if (file_exists($path)) { $key = md5(implode('_', array($path, filemtime($path)))); if ($manipulations = unserialize($cache->load($key))) { $failedManipulations += count($manipulations); $processedImages++; $cache->remove($key); } } } } echo "Cleared $failedManipulations failed manipulations from $processedImages Image objects stored in the Database."; } }