<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>

CC BY-SA 3.0
2017-02-20T18:07:42.177Z
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?
Brad Bell
CC BY-SA 3.0
2017-02-21T08:45:47.447Z
Hey @BradBell, no, no stale tasks ands no mention of any php errors in the logs either. It's very odd!
John
CC BY-SA 3.0
2017-02-21T19:00:31.760Z
Any other types of caching going on? Varnish, Fastly, opCache, APC, etc.?
Brad Bell
CC BY-SA 3.0
2017-02-21T21:21:25.487Z
@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.
John
CC BY-SA 3.0
2017-02-22T02:10:06.960Z
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.
Brad Bell
<cache>
Cache not outputting chunks of content
# 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 %}
      my content
    {% 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 @BradBell, 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**: @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.  
> **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

