public function flushCaches(bool $flushPersistentCaches = false): void
    {
        $this->createAllCaches();
        /** @var FrontendInterface $cache */
        foreach ($this->caches as $identifier => $cache) {
            if (!$flushPersistentCaches && $this->isCachePersistent($identifier)) {
                continue;
            }
            $cache->flush();
        }
        $this->configurationManager->flushConfigurationCache();
        $dataTemporaryPath = $this->environment->getPathToTemporaryDirectory();
        Files::unlink($dataTemporaryPath . 'AvailableProxyClasses.php');
    }
public function flushCaches(bool $flushPersistentCaches = false): void
    {
        $this->createAllCaches();
        /** @var FrontendInterface $cache */
        foreach ($this->caches as $identifier => $cache) {
            if (!$flushPersistentCaches && $this->isCachePersistent($identifier)) {
                continue;
            }
            $cache->flush();
        }
        $this->configurationManager->flushConfigurationCache();
        $dataTemporaryPath = $this->environment->getPathToTemporaryDirectory();
        Files::unlink($dataTemporaryPath . 'AvailableProxyClasses.php');
    }
public function flushCaches ( bool $ flushPersistentCaches = false ) : void { $ this -> createAllCaches ( ) ; /** @var FrontendInterface $cache */ foreach ( $ this -> caches as $ identifier => $ cache ) { if ( ! $ flushPersistentCaches && $ this -> isCachePersistent ( $ identifier ) ) { continue ; } $ cache -> flush ( ) ; } $ this -> configurationManager -> flushConfigurationCache ( ) ; $ dataTemporaryPath = $ this -> environment -> getPathToTemporaryDirectory ( ) ; Files :: unlink ( $ dataTemporaryPath . 'AvailableProxyClasses.php' ) ; }
Flushes all registered caches

@param boolean $flushPersistentCaches If set to true, even those caches which are flagged as "persistent" will be flushed
@return void
@api
Flushes all registered caches