Backend\Modules\Extensions\Engine\Model::clearCache PHP Method

clearCache() public static method

Note: we do not need to rebuild anything, the core will do this when noticing the cache files are missing.
public static clearCache ( )
    public static function clearCache()
    {
        $finder = new Finder();
        $filesystem = new Filesystem();
        foreach ($finder->files()->name('*.php')->name('*.js')->in(BACKEND_CACHE_PATH . '/Locale')->in(FRONTEND_CACHE_PATH . '/Navigation')->in(FRONTEND_CACHE_PATH . '/Locale') as $file) {
            $filesystem->remove($file->getRealPath());
        }
        $filesystem->remove(Navigation::getCacheDirectory() . 'navigation.php');
    }