src/wcmf/lib/io/impl/FileCache.php
private function initializeCache($section) {
    if (!isset($this->cache[$section])) {
      $file = $this->getCacheFile($section);
      if (file_exists($file)) {
        $this->cache[$section] = unserialize(file_get_contents($file));
      }
      else {
        $this->cache[$section] = [];
      }
    }
  }
private function initializeCache($section) {
    if (!isset($this->cache[$section])) {
      $file = $this->getCacheFile($section);
      if (file_exists($file)) {
        $this->cache[$section] = unserialize(file_get_contents($file));
      }
      else {
        $this->cache[$section] = [];
      }
    }
  }
private function initializeCache ( $ section ) { if ( ! isset ( $ this -> cache [ $ section ] ) ) { $ file = $ this -> getCacheFile ( $ section ) ; if ( file_exists ( $ file ) ) { $ this -> cache [ $ section ] = unserialize ( file_get_contents ( $ file ) ) ; } else { $ this -> cache [ $ section ] = [ ] ; } } }
Initialize the cache
@param $section The caching section
Initialize the cache