<p>Make sure you're running the latest version of Craft.  <code>using key</code> didn't come until Craft 2.2.</p>

CC BY-SA 3.0
2014-12-01T21:19:08.190Z
2014-12-01T21:19:08.190Z
Brad Bell
<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>

CC BY-SA 3.0
2014-12-01T18:35:05.847Z
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?
Brad Bell
<templating><cache>
Cache closing tag error
# 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.


---

