public function clear($cacheDir)
    {
        if (is_dir($this->legacyRootDir.'/innomatic/setup')) {
            return;
        }

        $this->legacyKernel->runCallback(
            function () {
                $gc = new CacheGarbageCollector();
                $gc->emptyCache();
            }
        );
    }