Body: <p>I have a simple caching setup on this site. I have a layout template that extends it has this:</p>
  
  <pre><code>{% block content %}
      {% cache %}
        &lt;p&gt;my content&lt;/p&gt;
      {% endcache %}
  {% endblock %}
  </code></pre>
  
  <p>And i have <code>'enableTemplateCaching' =&gt; true</code> set to on for the production site in my config.</p>
  
  <p>Since upgrading Craft from quite a old version to the latest as of a few weeks ago, the cache seems to have gone a bit haywire.</p>
  
  <p>If i clear the cache and then load the pages, all seems well, but then if i edit a template for example, elements on some pages don't output.</p>
  
  <p>One example is a map block, if i edit the latitude for the js in that block and then save that template, it doesn't output the js from that block which btw uses <code>{% includeJs myJs %}</code>. Other template elements seem to be missing also in other places.</p>
  
  <p>This all worked before, but doesn't now, no idea why!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-20T18:07:42.177Z
Comments.Text: The behavior sounds like you're running into a fatal PHP errors.  Anything in `craft/storage/runtime/logs` or your web server's error logs? Have any stalled tasks?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-21T08:45:47.447Z
Comments.Text: Hey @BradBell, no, no stale tasks ands no mention of any php errors in the logs either. It's very odd!
Comments.UserDisplayName: John
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-21T19:00:31.760Z
Comments.Text: Any other types of caching going on? Varnish, Fastly, opCache, APC, etc.?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-21T21:21:25.487Z
Comments.Text: @BradBell Nope, no caching. I'm going to go through and remove what add-ons i can, if it's that that is causing the issue. I have removed all caching tags which has removed the buggy output but would like to go back and cache expensive partials on this one.
Comments.UserDisplayName: John
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-22T02:10:06.960Z
Comments.Text: Sounds like you're on the right track.  Strip everything down to the barebones and start adding things back in one at a time until the issue re-appears.
Comments.UserDisplayName: Brad Bell
Tags: <cache>
Title: Cache not outputting chunks of content
ThreadText: # Cache not outputting chunks of content
  
  (Asked by: username_0 on 2017-02-20)
  
  I have a simple caching setup on this site. I have a layout template that extends it has this:
  
  ```
  {% block content %}
      {% cache %}
        <p>my content</p>
      {% endcache %}
  {% endblock %}
  
  ```
  
  And i have `'enableTemplateCaching' => true` set to on for the production site in my config.
  
  Since upgrading Craft from quite a old version to the latest as of a few weeks ago, the cache seems to have gone a bit haywire.
  
  If i clear the cache and then load the pages, all seems well, but then if i edit a template for example, elements on some pages don't output.
  
  One example is a map block, if i edit the latitude for the js in that block and then save that template, it doesn't output the js from that block which btw uses `{% includeJs myJs %}`. Other template elements seem to be missing also in other places.
  
  This all worked before, but doesn't now, no idea why!
  
  **Tags:** cache
  
  > **Comments:**
  > **username_1**: The behavior sounds like you're running into a fatal PHP errors.  Anything in `craft/storage/runtime/logs` or your web server's error logs? Have any stalled tasks?  
  > **username_0**: Hey @username_1, no, no stale tasks ands no mention of any php errors in the logs either. It's very odd!  
  > **username_1**: Any other types of caching going on? Varnish, Fastly, opCache, APC, etc.?  
  > **username_0**: @username_1 Nope, no caching. I'm going to go through and remove what add-ons i can, if it's that that is causing the issue. I have removed all caching tags which has removed the buggy output but would like to go back and cache expensive partials on this one.  
  > **username_1**: Sounds like you're on the right track.  Strip everything down to the barebones and start adding things back in one at a time until the issue re-appears.  
  
  ---
  
  ## 0 answers
  
  