How to get the proper key to use expire_fragment?
<p>I use fragment caching in Rails 4.x.</p>

<p>I specify my own key using something like this in my view:</p>

<pre><code>&lt;% cache "my-key" %&gt;
      html
&lt;% end %&gt;
</code></pre>

<p>This produces a key similar to this in my Redis database:</p>

<pre><code>views/my-key/dca9add42d461d4c76103c08d12a6571
</code></pre>

<p>When I want to expire this key, I use the expire_fragment command in a controller like so:</p>

<pre><code>expire_fragment("my-key")
</code></pre>

<p>But this command only produces a cache key like so:</p>

<pre><code>views/my-key
</code></pre>

<p>What I don't understand is, what is the <code>/dca9add42d461d4c76103c08d12a6571</code> part?</p>

<p>How does the original <code>cache</code> command not produce it, or how can I reproduce the <code>/dca9add42d461d4c76103c08d12a6571</code> suffix when I want to expire the fragment.</p>