/** * Removes all manager objects from the cache. * * If neither a context ID nor a path is given, the complete cache will be pruned. * * @param integer $id Context ID the objects have been created with (string of MShop_Context_Item_Interface) * @param string $path Path describing the manager to clear, e.g. "product/list/type" */ public static function clear($id = null, $path = null) { if ($id !== null) { if ($path !== null) { self::$_managers[$id][$path] = null; } else { self::$_managers[$id] = array(); } return; } self::$_managers = array(); }