title: Is there any relation b/w Restore View Phase and caching a Facelet?
body: <p>The caption says it all.
  By default, JSF performs periodic checks of Facelets views changes
  And the check can be configured through context parameter</p>
  
  <pre><code>javax.faces.FACELETS_REFRESH_PERIOD 
  </code></pre>
  
  <p>Further, there is this method in abstract class <code>FaceletCache</code></p>
  
  <p><code>public abstract boolean isFaceletCached(URL url);</code></p>
  
  <p>which can be overridden to cache <code>Facelet</code> or not.</p>
  
  <p>I was looking at the default implementation of <code>FaceletCache</code> but couldn't get to know whether Facelets are cached by default or not. </p>
  
  <pre><code>/**
   * Default FaceletCache implementation.
   */
  
  final class DefaultFaceletCache extends FaceletCache&lt;DefaultFacelet&gt; {
      @Override
      public boolean isFaceletCached(URL url) {
          com.sun.faces.util.Util.notNull("url", url);
  
          return _faceletCache.containsKey(url);
      }
  
  
       //.....
  }
  </code></pre>
  
  <p>And when should one really cache Facelet?</p>