src/AnyContent/Cache/CachingRepository.php
public function enableCmdlCaching($duration = null)
    {
        if ($duration == null) {
            $duration = $this->duration;
        }
        $this->cmdlCaching = $duration;

        $checkLastModifiedDate = false;
        if ($this->hasLastModifiedCacheStrategy()) {
            $checkLastModifiedDate = true;
        }

        $this->readConnection->enableCMDLCaching($duration, $checkLastModifiedDate);
        if ($this->writeConnection) {
            $this->writeConnection->enableCMDLCaching($duration, $checkLastModifiedDate);
        }
    }
public function enableCmdlCaching($duration = null)
    {
        if ($duration == null) {
            $duration = $this->duration;
        }
        $this->cmdlCaching = $duration;

        $checkLastModifiedDate = false;
        if ($this->hasLastModifiedCacheStrategy()) {
            $checkLastModifiedDate = true;
        }

        $this->readConnection->enableCMDLCaching($duration, $checkLastModifiedDate);
        if ($this->writeConnection) {
            $this->writeConnection->enableCMDLCaching($duration, $checkLastModifiedDate);
        }
    }
public function enableCmdlCaching ( $ duration = null ) { if ( $ duration == null ) { $ duration = $ this -> duration ; } $ this -> cmdlCaching = $ duration ; $ checkLastModifiedDate = false ; if ( $ this -> hasLastModifiedCacheStrategy ( ) ) { $ checkLastModifiedDate = true ; } $ this -> readConnection -> enableCMDLCaching ( $ duration , $ checkLastModifiedDate ) ; if ( $ this -> writeConnection ) { $ this -> writeConnection -> enableCMDLCaching ( $ duration , $ checkLastModifiedDate ) ; } }
Allow connection to cache CMDL definitions. Adjustable via duration if you're not sure how likely CMDL changes occur.

@param $duration
Allow connection to cache CMDL definitions . Adjustable via duration if you re not sure how likely CMDL changes occur .