src/Cache/QuickCache.php
public function put($filename, $content)
    {
        // Merge existing content to new content
        if (file_exists($this->cacheDir . $filename) && file_get_contents($this->cacheDir . $filename) != '') {
            $cachedContent = $this->get($filename);
            $content       = array_merge($content, $cachedContent);
        }
        $this->files->put($this->cacheDir . $filename, json_encode($content));
    }
public function put($filename, $content)
    {
        // Merge existing content to new content
        if (file_exists($this->cacheDir . $filename) && file_get_contents($this->cacheDir . $filename) != '') {
            $cachedContent = $this->get($filename);
            $content       = array_merge($content, $cachedContent);
        }
        $this->files->put($this->cacheDir . $filename, json_encode($content));
    }
public function put ( $ filename , $ content ) { // Merge existing content to new content if ( file_exists ( $ this -> cacheDir . $ filename ) && file_get_contents ( $ this -> cacheDir . $ filename ) != '' ) { $ cachedContent = $ this -> get ( $ filename ) ; $ content = array_merge ( $ content , $ cachedContent ) ; } $ this -> files -> put ( $ this -> cacheDir . $ filename , json_encode ( $ content ) ) ; }
Put information into cache file

@param            $filename
@param            $content
Put information into cache file