public function putUsingFileTimestamps($key, $value, array $filenames, $duration = null)
    {
        if (empty($duration))
            $duration = 0;

        $files = array();
        foreach ($filenames as $file) {
            $files[$file] = filemtime($file);
        }

        $timestamps = md5($files);

        // Populate all caches.
        $this->put($this->cacheKey($key), array('v' => $value, 't' => $timestamps), $duration);
//        $this->put($this->cachetskey($key), $timestamps, $duration);

        return true;
    }
public function putUsingFileTimestamps($key, $value, array $filenames, $duration = null)
    {
        if (empty($duration))
            $duration = 0;

        $files = array();
        foreach ($filenames as $file) {
            $files[$file] = filemtime($file);
        }

        $timestamps = md5($files);

        // Populate all caches.
        $this->put($this->cacheKey($key), array('v' => $value, 't' => $timestamps), $duration);
//        $this->put($this->cachetskey($key), $timestamps, $duration);

        return true;
    }
public function putUsingFileTimestamps ( $ key , $ value , array $ filenames , $ duration = null ) { if ( empty ( $ duration ) ) $ duration = 0 ; $ files = array ( ) ; foreach ( $ filenames as $ file ) { $ files [ $ file ] = filemtime ( $ file ) ; } $ timestamps = md5 ( $ files ) ; // Populate all caches. $ this -> put ( $ this -> cacheKey ( $ key ) , array ( 'v' => $ value , 't' => $ timestamps ) , $ duration ) ; //        $this->put($this->cachetskey($key), $timestamps, $duration); return true ; }
put cache value into cache store using timestamps of supplied files as a
tie on the validity of the cache

@param string $key       The key for the cache
@param string $value     The Value to store
@param array  $filenames An array of filenames to update
@param string $duration  The time-to-live for the cache data

@return boolean TRUE if successful
@throws CacheException on error
put cache value into cache store using timestamps of supplied files as a tie on the validity of the cache