Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ignoring the possibility of a server farm and load balancing, this behaviour can be caused by the application pool running as a <a href="http://msdn.microsoft.com/en-us/library/aa720391%28VS.71%29.aspx" rel="nofollow noreferrer" title="MSDN: Performance Application Pool Settings">web-garden</a>. To quote the relevant section from MSDN:</p> <blockquote> <p>Because Web gardens enable the use of multiple processes, each process will have its own copy of application state, in-process session state, caches, and static data. Web gardens should not be used for all applications, especially if they need to maintain state. Be sure to benchmark the performance of the application before deciding whether Web garden mode is appropriate.</p> </blockquote> <p>This will cause it to appear as if caching is storing multiple values for the same key, effectively having duplicate entries in the cache.</p> <p>To resolve this in IIS 7, open the application pool's <em>Advanced Settings</em> and set <em>Maximum Worker Processes</em> to 1. For IIS 6, see the <a href="http://msdn.microsoft.com/en-us/library/aa720391%28VS.71%29.aspx" rel="nofollow noreferrer" title="MSDN: Performance Application Pool Settings">MSDN article</a> (With pretty screenshots).</p> <p>Albeit 8 months late, I'm answering this question because I found it long before I found <a href="http://nicholas.piasecki.name/blog/2009/02/on-web-gardens-aspnet-and-iis-60/" rel="nofollow noreferrer" title="On Web Gardens, ASP.NET, and IIS 6.0">this decent article on web-garden gotchas</a>. Hopefully this answer will save future searchers a chunk of time. :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload