title: twig: caching and dynamic content
body: <p>I'm currently developing an application based on symfony2. It's my first dealing with this framework and I have a question regarding twig template caching.</p>
  
  <p>How does it manage templates with dynamic content? Say you have a template with this code somewhere in it:</p>
  
  <pre><code>{% for i in messages %}
       i.content
  {% endfor %}
  </code></pre>
  
  <p>I assume this cannot really be cached as is, so does twig do something with it? I'm asking because I'm starting to think that this type of code is not cached at all and the thing is, I did it almost everywhere in my app. So maybe going back to plain PHP would give me greater perf. Currently the twig engine is taking half of the page generation! If someone could advise me on it It would be great!</p>
  
  <p>Thanks for your responses and sorry for my english. Cheers</p>