<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>miyamae</author_name>
  <author_url>https://blog.hatena.ne.jp/miyamae/</author_url>
  <blog_title>BitArts Blog</blog_title>
  <blog_url>https://blog.bitarts.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
  </categories>
  <description>Railsでキャッシュストアをファイル（config.cache_store = :file_store）にして、ガンガンキャッシュを活用していると、サイトの規模が大きくなった時にrake tmp:cache:clearが辛くなってくる。やたら時間かかるようになるし、その間サーバの負荷もヤバイ。困った。 メモリストアにするとか、Memcached使うとかするべきなのかもしれないけど、VPSとかでギリギリやってるとメモリに余裕がないんです。 そこで、キャッシュファイルを削除するかわりに/tmpへmvするrakeタスクtmp:cache:flushを作ってみた。 lib/tasks/tmp_cac…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.bitarts.jp%2Fentry%2F2014%2F12%2F25%2Frails-tmp-cache-clear.html&quot; title=&quot;rake tmp:cache:clearが遅い - BitArts Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-12-25 12:00:00</published>
  <title>rake tmp:cache:clearが遅い</title>
  <type>rich</type>
  <url>https://blog.bitarts.jp/entry/2014/12/25/rails-tmp-cache-clear.html</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
