Answers.Body: <p>If you leave off the closing <code>{% endcache %}</code> tag, then you should always get the error that you received with <a href="https://craftcms.com/docs/config-settings#devMode" rel="nofollow noreferrer">devMode</a> enabled.  If devMode is disabled, you'll get the default 500 error template.</p>
  
  <p>I would disable the nginx microcaching while you're testing this to make sure that you're not getting erroneous caching results.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-07T18:56:54.233Z
Answers.LastActivityDate: 2016-11-07T18:56:54.233Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have been trying to fine tune the performance of a heavy page:
  see <a href="https://craftcms.stackexchange.com/questions/17273/category-query-very-slow-on-multilingual-site">Category query very slow on multilingual site</a></p>
  
  <p>It appears that my initial hope of getting the page under 2 seconds was not quite accurate. 
  After cache tagging the page the performance was great.
  However I had left out an <code>{% endcache %}</code> tag - ie not closed it. This makes the performance in the network inspector less than 1 sec to load. Very nice.</p>
  
  <p>However I am using Nginx microcaching set to 1 sec. As soon as I cleared the Nginx cache i started seeing the error in my template tag that was missing the closing cache tag. </p>
  
  <p>So why does it load lightning fast with an unclosed tag?</p>
  
  <p>When experimenting with placement of cache tags, I also managed to generate the following error in dev mode:</p>
  
  <pre><code>An exception has been thrown during the compilation of a template 
  ("Node "body" does not exist for Node "Craft\Cache_Node".").
  </code></pre>
  
  <p>I was wondering what exactly this means / indicates and if there is some interaction effect I am getting between craft cache and my Nginx server cache?</p>
  
Tags: <cache><performance>
Title: How to understand this exception error in context?
ThreadText: # How to understand this exception error in context?
  
  (Asked by: username_0 on 2016-11-07)
  
  I have been trying to fine tune the performance of a heavy page:
  see [Category query very slow on multilingual site](https://craftcms.stackexchange.com/questions/17273/category-query-very-slow-on-multilingual-site)
  
  It appears that my initial hope of getting the page under 2 seconds was not quite accurate.
  After cache tagging the page the performance was great.
  However I had left out an `{% endcache %}` tag - ie not closed it. This makes the performance in the network inspector less than 1 sec to load. Very nice.
  
  However I am using Nginx microcaching set to 1 sec. As soon as I cleared the Nginx cache i started seeing the error in my template tag that was missing the closing cache tag.
  
  So why does it load lightning fast with an unclosed tag?
  
  When experimenting with placement of cache tags, I also managed to generate the following error in dev mode:
  
  ```
  An exception has been thrown during the compilation of a template 
  ("Node "body" does not exist for Node "Craft\Cache_Node".").
  
  ```
  
  I was wondering what exactly this means / indicates and if there is some interaction effect I am getting between craft cache and my Nginx server cache?
  
  **Tags:** cache, performance
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-11-07. Score: 1
  
  If you leave off the closing `{% endcache %}` tag, then you should always get the error that you received with [devMode](https://craftcms.com/docs/config-settings#devMode) enabled. If devMode is disabled, you'll get the default 500 error template.
  
  I would disable the nginx microcaching while you're testing this to make sure that you're not getting erroneous caching results.
  
  
  ---
  
  