original_string: public function registerCache()
      {
          if ($this->module->cacheComponent !== false && !is_string($this->module->cacheComponent) && !is_array($this->module->cacheComponent)) {
              throw new InvalidConfigException('Invalid value for the cacheComponent parameter.');
          }
          if (is_string($this->module->cacheComponent)) {
              return;
          }
          $this->module->set('podium_cache', is_array($this->module->cacheComponent)
              ? $this->module->cacheComponent
              : ['class' => 'yii\caching\DummyCache']);
      }
code: public function registerCache()
      {
          if ($this->module->cacheComponent !== false && !is_string($this->module->cacheComponent) && !is_array($this->module->cacheComponent)) {
              throw new InvalidConfigException('Invalid value for the cacheComponent parameter.');
          }
          if (is_string($this->module->cacheComponent)) {
              return;
          }
          $this->module->set('podium_cache', is_array($this->module->cacheComponent)
              ? $this->module->cacheComponent
              : ['class' => 'yii\caching\DummyCache']);
      }
code_tokens: public function registerCache ( ) { if ( $ this -> module -> cacheComponent !== false && ! is_string ( $ this -> module -> cacheComponent ) && ! is_array ( $ this -> module -> cacheComponent ) ) { throw new InvalidConfigException ( 'Invalid value for the cacheComponent parameter.' ) ; } if ( is_string ( $ this -> module -> cacheComponent ) ) { return ; } $ this -> module -> set ( 'podium_cache' , is_array ( $ this -> module -> cacheComponent ) ? $ this -> module -> cacheComponent : [ 'class' => 'yii\caching\DummyCache' ] ) ; }
docstring: Registers cache.
  @throws InvalidConfigException
docstring_tokens: Registers cache .