4

Looks like out of the box prefetch cache setting has item and children set to items which no longer use. I've gone and added below on both master and web database settings.

<prefetch hint="raw:AddPrefetch"> 
  <cacheSize>500MB</cacheSize>
  <item desc="home">{4CE08AF0-CB20-40C2-BE74-BF049DE210B2}</item>
  <children desc="main items">{4CE08AF0-CB20-40C2-BE74-BF049DE210B2}</children>
</prefetch>

Where item is our Home node for the site. I assume children means prefetch all items underneath home node.

Questions:

  1. Do we need to include both master and web db settings in CMS? Or just master settings in CMS.
  2. Do we need to include master and web db settings in CD? Or just Web settings in CD.
  3. Where does sitecore stores the cache data for (item cache, data cache and prefetch cache). Wondering if any of them are stored in physical file.
  4. I'm using out of box cache page and also sitecore cache admin module (https://marketplace.sitecore.net/en/Modules/Sitecore_Cache_Admin.aspx)

    The page shows prefetch cache data for both web and master. Wondering how this tool gets the data for web db prefetch for scenario where there are multiple CDs. Or is it just getting from CMS server?

5.When I search for the prefetch item using above mentioned module, I can find it on master prefetch but not on web prefetch. Hence I'm wondering how it shows the prefetch items for Web DB from CMS server.

8
  1. Do we need to include both master and web db settings in CMS? Or just master settings in CMS. Only the master db will suffice. Web db items are only used when the site is accessed through the front-end which is usually not the case on CMS.
  2. Do we need to include master and web db settings in CD? Or just Web settings in CD. Only the web db. The master db is not accessible on CD servers (if configured correctly).
  3. Where does sitecore stores the cache data for (item cache, data cache and prefetch cache). Wondering if any of them are stored in physical file. They are stored in-memory on the instance, not on disk.
  4. I'm using out of box cache page and also sitecore cache admin module. The page shows prefetch cache data for both web and master. Wondering how this tool gets the data for web db prefetch for scenario where there are multiple CDs. Or is it just getting from CMS server? This is configured in the /App_Config/Prefetch/*.config files. There is one file for each database and one shared file.

Here are some helpful resources on prefetch cache:

  • Point 4. My question was whether the cache pages shows the correct details for web db prefetch. Wonder how does it read the prefetched items for each CDs if items are stored in memory. Or do i need to access from each CDs. – Nil Pun Oct 24 '16 at 7:31
  • Indeed, you need to access it from the CD – Ruud van Falier Oct 24 '16 at 7:39
  • I assume if site is setup as distributed session state, then prefetch will also be on distributed? – Nil Pun Oct 24 '16 at 11:36
  • Nope, the cache is stored in-memory so each server has its own cache. Distributed session state only applied to session state, not to cache. – Ruud van Falier Oct 24 '16 at 11:43
  • Hm... if prefetch cache is in-memory I'm curious on why there is a need for item and data cache (assuming these are also in in-memory cache). – Nil Pun Oct 25 '16 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.