title: Does readFileSync of node.js cache the read files?
body: <p>Does <code>fs.readFileSync</code> of node.js cache files that's been read?</p>
  
  <p>I don't think it does because doc doesn't say so, but my code is behaving that way..</p>
  
  <ul>
  <li>edit</li>
  </ul>
  
  <p>Relevant part of code</p>
  
  <pre><code>     // after mainPath file is altered, it's not reflected until I restart node.js
       var scriptString =  fs.readFileSync(mainPath);
       var app = vm.createScript(scriptString, mainPath); 
  
       // Run the app
  
       app.runInContext(context);
  </code></pre>