public static function putCache($hash, $path, $obj = null) { if ($obj) { $cache = $obj; } else { $cache = new afValidatorCache(); } $cache->setPath($path); $cache->setSignature($hash); $cache->save(); }