src/wcmf/application/controller/AdminController.php
protected function clearCaches() {
    $config = $this->getConfiguration();
    foreach($config->getSections() as $section) {
      $sectionValues = $config->getSection($section, true);
      if (isset($sectionValues['__class'])) {
        $instance = ObjectFactory::getInstance($section);
        if ($instance instanceof Cache) {
          $instance->clearAll();
        }
        elseif ($instance instanceof View) {
          $instance->clearCache();
        }
      }
    }
  }
protected function clearCaches() {
    $config = $this->getConfiguration();
    foreach($config->getSections() as $section) {
      $sectionValues = $config->getSection($section, true);
      if (isset($sectionValues['__class'])) {
        $instance = ObjectFactory::getInstance($section);
        if ($instance instanceof Cache) {
          $instance->clearAll();
        }
        elseif ($instance instanceof View) {
          $instance->clearCache();
        }
      }
    }
  }
protected function clearCaches ( ) { $ config = $ this -> getConfiguration ( ) ; foreach ( $ config -> getSections ( ) as $ section ) { $ sectionValues = $ config -> getSection ( $ section , true ) ; if ( isset ( $ sectionValues [ '__class' ] ) ) { $ instance = ObjectFactory :: getInstance ( $ section ) ; if ( $ instance instanceof Cache ) { $ instance -> clearAll ( ) ; } elseif ( $ instance instanceof View ) { $ instance -> clearCache ( ) ; } } } }
Clear all cache instances found in the configuration
Clear all cache instances found in the configuration