cache.js
function ( noPrune ) {
        removeNotFoundFiles();

        noPrune = typeof noPrune === 'undefined' ? true : noPrune;

        var entries = normalizedEntries;
        var keys = Object.keys( entries );

        if ( keys.length === 0 ) {
          return;
        }

        var me = this;

        keys.forEach( function ( entryName ) {
          var cacheEntry = entries[ entryName ];

          try {
            var meta = useChecksum ? me._getMetaForFileUsingCheckSum( cacheEntry ) : me._getMetaForFileUsingMtimeAndSize( cacheEntry );
            cache.setKey( entryName, meta );
          } catch (err) {
            // if the file does not exists we don't save it
            // other errors are just thrown
            if ( err.code !== 'ENOENT' ) {
              throw err;
            }
          }
        } );

        cache.save( noPrune );
      }
function ( noPrune ) {
        removeNotFoundFiles();

        noPrune = typeof noPrune === 'undefined' ? true : noPrune;

        var entries = normalizedEntries;
        var keys = Object.keys( entries );

        if ( keys.length === 0 ) {
          return;
        }

        var me = this;

        keys.forEach( function ( entryName ) {
          var cacheEntry = entries[ entryName ];

          try {
            var meta = useChecksum ? me._getMetaForFileUsingCheckSum( cacheEntry ) : me._getMetaForFileUsingMtimeAndSize( cacheEntry );
            cache.setKey( entryName, meta );
          } catch (err) {
            // if the file does not exists we don't save it
            // other errors are just thrown
            if ( err.code !== 'ENOENT' ) {
              throw err;
            }
          }
        } );

        cache.save( noPrune );
      }
function ( noPrune ) { removeNotFoundFiles ( ) ; noPrune = typeof noPrune === 'undefined' ? true : noPrune ; var entries = normalizedEntries ; var keys = Object . keys ( entries ) ; if ( keys . length === 0 ) { return ; } var me = this ; keys . forEach ( function ( entryName ) { var cacheEntry = entries [ entryName ] ; try { var meta = useChecksum ? me . _getMetaForFileUsingCheckSum ( cacheEntry ) : me . _getMetaForFileUsingMtimeAndSize ( cacheEntry ) ; cache . setKey ( entryName , meta ) ; } catch ( err ) { // if the file does not exists we don't save it // other errors are just thrown if ( err . code !== 'ENOENT' ) { throw err ; } } } ) ; cache . save ( noPrune ) ; }
Sync the files and persist them to the cache
@method reconcile
Sync the files and persist them to the cache