<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
    <anon>Apache/Nginx</anon>
  </categories>
  <description>mogile.web.fc2.com nginxが持っている機能のファイルキャッシュの追い出し方法について調べたので書いた。 ざっくり結論としてはキューを用いたLRUでキャッシュサイズが指定した値より大きい場合は要素の末尾を削除していくという実装 static time_t ngx_http_file_cache_expire(ngx_http_file_cache_t *cache) { for ( ;; ) { q = ngx_queue_last(&amp;cache-&gt;sh-&gt;queue); fcn = ngx_queue_data(q, ngx_http_file_cache_node_t,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F06%2F19%2F151123&quot; title=&quot;【Nginx】ファイルキャッシュの追い出しアルゴリズム - 地方エンジニアの学習日記&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>2021-06-19 15:11:23</published>
  <title>【Nginx】ファイルキャッシュの追い出しアルゴリズム</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2021/06/19/151123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
