Hiroshi Okunushi's Blog ☆ミ| IIS PHP etc.

IIS7, PHP on IIS を中心とした情報発信ブログです。

【MSOn】 IIS7のNative Output Cache

【MSOn】 IIS7のNative Output Cache

  • Comments 1
  • Likes

実は説明の中でこれに興味を持っていただいた方がいらっしゃって一体どうやって動いてるんだろう?というのが議論になりました。そこで少し情報収集。。。

まずはIISの親分Bill Staplesのところへ

http://blogs.iis.net/bills/archive/2006/10/31/PHP-on-IIS.aspx

The IIS7 output cache is a new feature in IIS7 which makes it possible to cache entire responses in memory - even from dynamic content.  Unlike the existing caches IIS has, it is a 'smart' cache, enabling you to configure it to cache separate copies of responses for the same page (like index.php) based on query string value, so it works great for the Qdig application we've been using.  One of the other really cool things about it is the fact that it is integrated with the http.sys (kernel mode driver) cache, allowing for blazing fast performance.  Output caching is going to be a very powerful feature for all kinds of applications, from PHP to ColdFusion, Classic ASP to CGI.  It will work with any content type, and can significantly speed up performance for applications where the underlying data doesn't change (like our image gallery), or where the changes occur at a predictable rate (so you can timeout the cache at the expected interval).  Even in cases where the data is changing, say, once a second, it may make great sense to use the output cache with an expiration of 1 second.  This allows for the dynamic processing to occur only once a second, instead of on every request, significantly speeding up response times and lowering CPU. 

なるほど。。。そんでもってMike Volodarsky。。。
http://mvolo.com/2006/11/17/while-you-were-out-.aspx

The native output cache in IIS7 was inspired by the ASP.NET Output Cache, which I owned in the ASP.NET 2.0 timeframe.   It is essentially a faster version of it, with much fewer features (no cache dependencies, validation callbacks, or fancy http1.1 client caching support), but still capable of caching dynamic content AND able to provide much better control of memory usage then the ASP.NET cache. 

なるほどASP.NET2.0のキャッシュメカニズムの発展版と。

でもってエンジニアのKanwalのブログと。。。かなり詳しい。。。
http://blogs.iis.net/ksingla/archive/2006/11/16/caching-in-iis7.aspx

Native output cache is the new user mode response cache added in IIS7. This module provides similar functionality as provided by the managed output cache module in ASP.NET. Functionality of this module can be controlled by editing system.webServer/caching section or by using IHttpCachePolicy intrinsic. Following properties can be set in system.webServer/caching section.

ほほーユーザーモードで動作するレスポンスキャッシュであると。

総合すると http://msdn2.microsoft.com/ja-jp/library/ms178603(VS.80).aspx の機能をIIS7ネイティブでユーザーモード用に実装したということかな。

こんなところでご質問の回答になっているとうれしいですが。(^。^)y-.。o○

Comments
  • ユーザーモードという点がちょっと私の理解がおかしかったか。。。

    上にも実は書いてあるのですが、このBillの記事もご覧ください。

    http://blogs.iis.net/bills/archive/2006/10/31/PHP-on-IIS.aspx

    ※Kernel Mode Cacheと統合と書いてある。

    今度どこかのイベント準備ではここはちゃんと取り上げていくことにします。

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment