Answers.Body: <p>Make sure you're running the latest version of Craft.  <code>using key</code> didn't come until Craft 2.2.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-01T21:19:08.190Z
Answers.LastActivityDate: 2014-12-01T21:19:08.190Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm trying to using craft caching to cache a page without query string vars. </p>
  
  <p>This tag</p>
  
  <pre><code>{% cache using key craft.request.path  %}
  
  {% endcache %}
  </code></pre>
  
  <p>throws an error </p>
  
  <p>Unexpected token "name" of value "using" ("end of statement block" expected) </p>
  
  <p>This example is right from the Craft Docs, <a href="https://craftcms.com/docs/templating/cache" rel="nofollow noreferrer">https://craftcms.com/docs/templating/cache</a></p>
  
  <p>If I remove the "using ..." everything works fine.</p>
  
  <p>Any ideas?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-01T18:35:05.847Z
Comments.Text: Works fine for me locally? Can you share the surrounding template code? Maybe some other template code is contributing to the error. Also, what's the URL look like when you get the error?
Comments.UserDisplayName: Brad Bell
Tags: <templating><cache>
Title: Cache closing tag error
ThreadText: # Cache closing tag error
  
  (Asked by: username_0 on 2014-12-01)
  
  I'm trying to using craft caching to cache a page without query string vars.
  
  This tag
  
  ```
  {% cache using key craft.request.path  %}
  
  {% endcache %}
  
  ```
  
  throws an error
  
  Unexpected token "name" of value "using" ("end of statement block" expected)
  
  This example is right from the Craft Docs, <https://craftcms.com/docs/templating/cache>
  
  If I remove the "using ..." everything works fine.
  
  Any ideas?
  
  **Tags:** templating, cache
  
  > **Comments:**
  > **username_1**: Works fine for me locally? Can you share the surrounding template code? Maybe some other template code is contributing to the error. Also, what's the URL look like when you get the error?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-12-01. Score: 3
  
  Make sure you're running the latest version of Craft. `using key` didn't come until Craft 2.2.
  
  
  ---
  
  