
312
CHAPTER 10 Building ScalaBle applicationS inSharepoint
site collections do not use more than 500KB or so of cache memory. If this limit is reached, the
object cache discards the least recently used items to ensure the total size of the cache is under this
limit. You may select to ush the object cache, including forcing all servers on the farm to ush their
caches. Use this option when stale data becomes noticeable or when altering the Super User and
Super Reader accounts used by the cache.
Next, you can select the method by which items in the cache become invalid and must be reloaded
from the database. The default is to set a timeout duration in seconds (60 seconds default) after which
items in the cache become invalid. The other option is to check the database server for changes on
every request, which incurs database latency overhead on each page load, but never results in users
seeing stale data. Weigh the need for performance against the need for up-to-date information when
choosing your cache invalidation method. Finally, you may select the cross list query multiplier, as
described earlier in this section.
In addition to the site collection level object cache conguration, SharePoint 2010 introduces
a new object cache conguration option available at the web application level: the object cache
maxSize override. The maxSize override setting limits the output cache si ...