Questions tagged [caching]

Questions about all possible caching mechanisms in Sitecore, Sitecore projects or Sitecore related modules

Filter by
Sorted by
Tagged with
15
votes
2answers
428 views

How do I clear the HTML cache for a specific user?

We have an action that updates some user profile information that is displayed in components that are cached with a vary by user setting. Is there a way to clear the cache for only that one user?
14
votes
4answers
5k views

How can I safely clear the media cache on a production sitecore CD instance?

I would like to manually clear the media cache on a production CD instance. Is there a way to clear the cache without causing disruption to the site?
13
votes
2answers
6k views

What is the difference between the item, prefetch and html caches?

It is my understanding that there are various different caches in Sitecore. What are they for? I know there is an item cache, a html cache and a prefetch cache, but I don't understand how they ...
12
votes
4answers
3k views

Disable HTML cache for development

I am currently making code changes to a view rendering in Sitecore, and when a deploy these changes to my local environment, they were not visible. I realized that the rendering was marked as ...
12
votes
3answers
3k views

Sitecore Page - First request on every page slow

We have been noticing that the first request to any of the Sitecore pages seems to be loaded slow. Every subsequent request is ok. Note that we can't use output cache as is a transaction based member ...
11
votes
1answer
402 views

Which SXA components should be cached for minimal setup?

I'm reviewing the cache settings available in SXA found here. There are many components that are available for caching, but I'm not clear whether any should not be cached. In an effort to start ...
9
votes
2answers
2k views

Clearing CD cache in code from the CM

I'm just mapping out some caching for a module which loads data from an external SQL database. I want to cache the results of methods for a configured amount of time but if the data is reimported on ...
9
votes
4answers
3k views

Forcing Sitecore to clear the cache for updated images

I am aware there are a number of Cache settings for media library items in Sitecore (as described here: Sitecore Implementation - HTML Cache Control Setting options). However the MediaResponse....
9
votes
2answers
4k views

Sitecore Html Caching Strategy

If I can set a rendering cache to Vary By Data, meaning the cache will vary for a given component with a different data source set, why am I not just setting every component to be Cacheable with Vary ...
9
votes
1answer
840 views

Can GlassMapper caching be disabled at a site level?

Sitecore's HTML caching can be disabled through the cacheHtml parameter on the website's definition. This is handy for a preview site that directly reads from the Master database. Can the same be ...
9
votes
2answers
628 views

Optimal HTML cache size?

I am trying to determine the optimal size for the htmlCacheSize on a website in Sitecore. We're assembling a website that will be ~1500 pages in 13 languages. Initial tests show that the current "en"...
7
votes
2answers
2k views

Log file warning about caching and DefaultScavengeStrategy

I see a ton of these warnings in my Sitecore log file, using 8.2 Update 3: 5304 01:57:06 WARN web[isLanguageFallbackValid] cache is cleared by Sitecore.Caching.Generics.Cache`1+...
7
votes
1answer
436 views

Deleting the media cache folder resets app pool

We are having an issue with the app pool resetting in IIS after a media cache folder deletion. This only happens when we have a lot of images (~20 GBs) cached. Everything I've read says that deleting ...
7
votes
1answer
695 views

How to disable caching for specific items in the Media Library?

Is it possible to disable caching at an item level in the media library? We have specific PDF files that are updated every week, but it's simply not feasible to create a new item in the media library ...
7
votes
2answers
1k views

Sitecore with personalisation and CDN such as CloudFlare

If I wanted to set up Sitecore to use CloudFlare (or an other CDN) how would I enable personalisation? Would I have to exclude any pages using personalisation from being cached by the CDN, or is there ...
7
votes
2answers
2k views

Rendering Caches not working

I have a problem with my HTML cache always being empty when I look at the cache report screens in Sitecore I have done the following: Enabled Cacheable and Vary By Data on each rendering in Sitecore (...
7
votes
2answers
457 views

Redis Cache with Glass mapper interfaces in Sitecore 8.1 and above

I'm using Stackexchange.Redis for Redis cache on Azure with Glass mapper and Sitecore 8.1 - For Glass mapper implementation I'm using interfaces as models and maps configuration to get the data. Now ...
7
votes
1answer
2k views

How can I determine if I can set Caching.AccessResultCacheSize to 0?

After upgrading to Sitecore 8.2 Update-5 recently I was looking in our CD server's logs and noticed a large number of warnings around the AccessResultCache: 7792 14:52:05 WARN AccessResultCache ...
6
votes
2answers
2k views

How can I know that the Html Cache on the CD is Cleared on Publish

I recently configured a CD and CM environment, where the CD's are isolated from the CM environment on their own machine. Is there a way to tell via the logs that the Html Cache has been cleared when ...
6
votes
1answer
9k views

How to configure caching for static resources in Sitecore

How can I enable caching for static resources such as CSS and JavaScript files in a Sitecore solution? I need these resources to have the following response header present: Cache-Control:public, max-...
6
votes
1answer
605 views

Warning: A rendering was not used on the page. The placeholder “xxxxxx” was not found

There is a Desktop Layout (Desktop.aspx) with several controls (Figure 1 and Figure 3). One of the controls called "Two Column Big Left" (TwoColumnBigLeft.ascx) has three placeholders (Inner Content ...
5
votes
3answers
2k views

How do I get to know the CD server Cache details

Sitecore Admin will not present in CD server, how to get to know the Cache limit and usage in CD server. In local environment, where CD and CM are available we'll use the below URL. http://[domain]/...
5
votes
1answer
371 views

Glass Mapper language caching

Ran into an odd caching issue with glass mapper (v. 4.2.1.188). We have 2 languages in our site (Chinese and English). Here's the scenario (could replicate after every iisreset): Load the page in ...
5
votes
2answers
1k views

Sitecore.Caching.CustomCache changes with 8.2

I'm upgrading my site from Sitecore 8.1 to Sitecore 8.2, and one of the compile errors that I'm getting is CS1503 Argument 3: cannot convert from 'long' to 'System.EventHandler' As I'm ...
5
votes
1answer
1k views

What does the DisableBrowserCaching setting actually disable?

I have configured and tuned site caches many times, but I feel like I still don't fully understand what the DisableBrowserCaching setting does. I have read all of the docs and I have done a little ...
5
votes
1answer
38 views

Can you add the same rendering to multiple SXA Cache Settings items

Is it supported to add the same rendering to two (or more) different cache settings items? Currently, there is no warning if you do so, but I'm unsure if this is a valid thing to do or not?
5
votes
2answers
4k views

How do i clear the cache of the item after publishing

Hi On Save event i am publishing the changes to another database (another environment). Please refer Below link AutoPublishing doesn't work on Rename & Copy How do i clear those published ...
5
votes
1answer
491 views

ETag or Last-Modified on sitecore pages

How to implement ETag or Last-Modified on sitecore pages (not media library) Based on the page item, rendering datasources, index search results having changed. Get a hash of the generated page ...
5
votes
1answer
400 views

How to share Sitecore caches (item, data, prefetch,etc NOT session state) on Azure PaaS between Web Apps

I can't find any docs on this so I assume it's not possible, but... If you run Sitecore in Azure PaaS and have scale-out enabled (e.g. you're running 2x S3 instances) then can you have a shared/...
5
votes
2answers
300 views

SXA differences between Partial Design and Metadata Partial Design

I notice that with SXA there are two types of partial design: Partial Design /sitecore/templates/Foundation/Experience Accelerator/Presentation/Partial Design Metadata Partial Design /sitecore/...
5
votes
1answer
124 views

Sitecore Debug Tool Question

What is the difference between physical read and cache miss and how are these calculated in the Sitecore Debug tool?
4
votes
1answer
140 views

Locking down Sitecore rendering caching

Sitecore has some lovely granular security permissions that can help us stop users doing things which can break the site, however one thing I can't obviously see is how to limit access to the caching ...
4
votes
1answer
3k views

Sitecore Implementation - HTML Cache Control Setting options

We are building a very transnational membership portal on sitecore platform. So Rendering output caching is not a good option for us. Per this htm-caching guideline (https://developers.google.com/web/...
4
votes
1answer
3k views

Sitecore pre-fetch cache setting clarification

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:...
4
votes
1answer
126 views

Any Recommendations For Disabling AccessResultCache on CD?

I'm considering disabling AccessResultCache on our CD environment based on these instructions - https://sitecorebasics.wordpress.com/2013/01/24/do-you-really-need-accessresultcache-on-cd-servers-if-no-...
4
votes
1answer
1k views

How to Disable Cache for One Page

I have a detail page that takes a query-string argument called CID and uses that CID to get a record from a SQL database. The sitecore/site/cacheHtml attribute is set to true. We want to keep caching ...
4
votes
3answers
997 views

Cache not clearing on publish

I have a Sitecore instance running on 8.1 rev. 151207 on a scaled environment with one CM and 2 CDs. I have been noticing that every time I publish content in a specific language(chinese) which has a ...
4
votes
1answer
401 views

How to refresh prefetch cache?

How prefetch cache update its cached item, If I change the content of Sitecore item? And also other ways of prefetch cache refreshing?
4
votes
2answers
127 views

What is the Sitecore.Caching.CachePriority enum type used for?

I am struggling to figure out what the Sitecore.Caching.CachePriority enum type is used for. The type looks somewhat similar to .NET's System.Web.Caching.CacheItemPriority type, however, the values ...
4
votes
2answers
385 views

Sitecore Azure Cachingservices Sizing on Prod Based on number of CD servers

Is there any rule of thumb on the number of caching services to have with Content delivery servers. Like 2 Cache services with 1 CD in Azure PAAS. Asking this question, because one of our clients ...
4
votes
1answer
421 views

Caches not evicting until application fails despite high memory usage

I have a solution that I have been running gradually incrementing load-tests on (i.e. I am using jmeter to create some load but I'm incrementing the load slowly, rather than all at once) until CPU and ...
4
votes
2answers
620 views

Caching of static components

What options do I have for caching statically added components that render the top menu of the site. It should always highlight the selected section the visitor is currently visiting in the top right ...
4
votes
1answer
387 views

How to clear Glass lambda cache?

We have an issue with resizing images where the old dimensions are getting cached--I think in Glass' lambda cache. I'm trying to figure out how to clear it once we update an image. The cached value ...
4
votes
1answer
180 views

Glass Cast Failing With Infer Type True On Second Call

I'm using SitecoreContext.Cast(item, true, true) to map an item. It looks like elsewhere in the code, the same item has been casted to BaseType WITHOUT inferType = true before I make that call. When I ...
3
votes
4answers
526 views

Creating a very large footer menu efficiently

I have a scenario where each page of a site has a checkbox for "is in header" and "is in footer". The universe of items that needs to be traversed is a couple of hundred in nature, and I'm looking for ...
3
votes
1answer
220 views

When publish dialog says publish has finished, does that mean indexing has also finished as well?

When Sitecore indicates that publishing has finished (via normal publish dialog) does this mean that subsequent indexing will also have finished, or does the dialog only report on publish status?
3
votes
2answers
820 views

Considerations for Caching Sitecore Content Pages (HTML markup)

I've read the documentation regarding caching and also a number of posts on SSE and I'm trying to understand if there is anything else to consider other than the following when enabling caching for a ...
3
votes
1answer
282 views

Cache.aspx showing wrong Max sizes

On one of our projects (Sitecore 8.2 initial) we see something weird in the /sitecore/admin/cache.aspx page: As you can see the MaxSize value is a bit high. (Count, Size and Delta are not 0 ...
3
votes
2answers
553 views

How can we retrieve the data in the Sitecore HTML Cache?

We are creating a report page where we will display the cached data source / presentation . A button will be there to remove selected cached item. Which Sitecore Api can we use to retrieve the list ...
3
votes
2answers
339 views

When does prefetch cache get re-populated after publishing?

I'm currently running Sitecore with separated CM and CD servers/DBs. I'm aware that prefetch cache get re-polulated when server restart. This Sitecore documentation state that https://sdn.sitecore....