/** * @return Cache */ public static function getInstance() { if (!self::$instance) { $caching_system = _PS_CACHING_SYSTEM_; self::$instance = new $caching_system(); } return self::$instance; }
/** * Unit testing purpose only */ public static function deleteTestingInstance() { self::$instance = null; }