Questions tagged [caching]

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

Filter by
Sorted by
Tagged with
9
votes
4answers
4k 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....
5
votes
1answer
2k 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 ...
2
votes
2answers
1k views

Can we enable/disable caching at a page level in sitecore

I got a question from a client asking if we can enable/disable caching at a page level in Sitecore, I know we can do it for single renders/ but I couldn't find anything about enabling/disabling ...
1
vote
1answer
309 views

Storing custom data in Redis

Our Sitecore 9.2 PaaS website uses federated authentication for logging in our end users, and we are looking for a secure place to store refresh- and access-tokens (pref. serverside). We would prefer ...
0
votes
1answer
865 views

Clear individual Rendering/Component Html cache

We have extended HtmlCacheClearer in our solution. We are able to clear site cache using CacheManager.GetHtmlCache(site).Clear(). We wanted to clear individual Rendering/Component cache. How can we ...
10
votes
2answers
3k 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 ...
14
votes
2answers
8k 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 ...
8
votes
1answer
14k 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-...
8
votes
2answers
3k 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+...
6
votes
2answers
3k 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 ...
5
votes
1answer
4k 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/...
9
votes
2answers
5k 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 ...
5
votes
2answers
2k 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 ...
4
votes
2answers
162 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
1answer
4k 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
561 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?
13
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 ...
4
votes
1answer
540 views

Disabling the Glass lambda cache

I believe an issue we're running into might be related to the lambda cache in Glass - I'm also concerned about the performance ramifications if we were to disable it. Has anyone done this and ...
3
votes
2answers
411 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....
2
votes
1answer
1k views

I deleted a page, but it still appears on the site. How can I delete this page?

Through Content Editor I deleted a page, after that, I published the folder where it was contained. But even deleted the page keeps appearing on the site and I do not know how to remove. The strange ...
0
votes
0answers
263 views

Component's personalization rule applies only once

In our solution we're using custom personalization rule to show/hide components based on some criteria. This rule works fine but only for the first time the user visits the page after it's published ...
0
votes
1answer
561 views

Performance Issue JSS+React

I'm having a performance issue, the loading speed is quite long. I also noticed that when I first load the page, there is some plain text showing while loading before the page completely loaded and ...