Questions tagged [caching]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
67 views

Can smart publish be configured to clear HTML Cache for a page when it's child page has been published?

Smart Publish appears to clean out HTMLCache selectively, essentially only for the items that have been published rather than fully clearing out the HTML cache. I have several pages whose content is ...
0
votes
0answers
13 views

Disable Browser Caching at page level

We have a JSS application in integrated mode Sitecore 9.1. To utilize the caching, we have set disableBrowserCaching="true". I am looking for a way if we can have this setting at the page level, ...
0
votes
1answer
50 views

Caching in Headless Architecture Mode - How does the Caching works for each ReactJs Component?

I hope you all are keeping safe during these uncertain times. I have two questions. I am creating a simple react-js page with 4 components. Can someone please guide me how the caching works in ...
0
votes
1answer
35 views

Sitecore caching warning error in 9.1.1 [closed]

Getting below error in logs. WebUtil.QueryStringCache cache is cleared by Sitecore.Caching.Generics.Cache`1+DefaultScavengeStrategy[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, ...
1
vote
2answers
56 views

What is the benefit of the Item and Data caches?

I can understand that the Prefetch cache is very useful for caching items in the database - thereby reducing reads to the SQL server. I can also understand the HTML cache is useful for caching the end ...
0
votes
0answers
22 views

How are the Item and Data caches cleared?

I can see a good explanation about how the prefetch cache works, and a good explanation of the different Sitecore caches and how they get populated. How do the Item and Data caches get cleared? I'm ...
0
votes
0answers
29 views

Detect when Sitecore automatically clears a custom cache

I'm trying to trigger something in the event that Sitecore clears one of my custom caches (implementing Sitecore.Caching.CustomCache) when it gets full. I can monitor the cache size compared to its ...
0
votes
0answers
30 views

Clear cache for wildcard page

How would I approach clearing the cache in the scenario where I have a wildcard page in my site e.g. /sitecore/content/MySite/Home/Products/* which references another section of the content tree ...
0
votes
1answer
58 views

Implement ICacheable or use the abstract CustomCache

We wish to make use of Sitecores customcache. However, we are in doubt whether we need to implement ICacheable or whether its enough to make use of the abstract CustomCache class. This is for Sitecore ...
0
votes
1answer
94 views

Rendering is Cached

I am using Sitecore 9.3 and I have a .cshtml updated but the update is not reflected on CD server although the physical file is updated. I do iisreset and publish for the site to clear any cache but ...
1
vote
0answers
38 views

Configuring static resource caching with IIS cache based on domain

We came across a problem with regards to the IIS cache that is not taking the domain into consideration. We have the following scenario: Request page X from domain A.be Page X requests a static ...
0
votes
0answers
87 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 ...
4
votes
2answers
642 views

Html cache clear error after upgrade Sitecore from 9.0.2 to 9.3

I am trying to upgrade my application from Sitecore 9.0.2 to 9.3. In my sitecore.config file, I have below setting : <event name="publish:end"> <handler type="Sitecore.Publishing....
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 ...
0
votes
1answer
81 views

Custom Caching option not showing up on the rendering

I have added the custom cache option (vary by URL) in the template /sitecore/templates/System/Layout/Sections/Caching/Caching. To add the above option I followed the blog post: http://www....
0
votes
1answer
256 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 ...
0
votes
0answers
82 views

Media cache issue after adding version to the query string as part of the cache bust mechanism on CDN

Background: Recently, we implemented CDN and as part of that version is added to the query string to bust the cache. After that, we started noticing an issue where a web page is loading a random image ...
2
votes
1answer
87 views

How to clear HtmlCache on a CD server from an admin page

How would I go about creating an admin page to clear the cache on a CD server? Looking at this question/answer I would assume the following: Define a new cache:clear custom event in a new config ...
5
votes
1answer
47 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
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 ...
3
votes
1answer
161 views

How to implement Sitecore.Caching.CustomCache with locking

I'm trying to use (a derivative of) the Sitecore CustomCache class in my solution but am seeing that during the course of my load testing, certain values are not being retrieved from the cache and are ...
1
vote
1answer
50 views

Caching HTML for rendering based on “page” item data, not datasource

I have a couple of controller renderings where the data loaded is from several Sitecore items including the "page" itself, and the Rendering datasource is not actually set on the Rendering. How can I ...
2
votes
0answers
42 views

If you add a rendering to a SXA cache settings item will it break personalization

As the title says. If you enable caching for a rendering in SXA using a CacheSetting item e.g. under /sitecore/content/My Client/EMEA/My Website/Presentation/Cache Settings Will this prevent ...
5
votes
2answers
681 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/...
2
votes
1answer
499 views

Redis Cache Shared Session Configuration

I'm trying to configure Redis cache session storage for my CD environments. I'm following this document -> https://doc.sitecore.com/developers/90/platform-administration-and-architecture/en/...
4
votes
2answers
415 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 ...
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 (...
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 ...
9
votes
2answers
766 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"...
2
votes
1answer
547 views

Publishing Service not updating Content Delivery after publish

I've installed the Publishing Service on my Sitecore 9.0 Update-2 environment with dedicated CM und CD server. The publishing process seems to work. So when I publish an item on my CM I can look into ...
11
votes
1answer
535 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 ...
0
votes
1answer
42 views

How to inspect HTML cache content/size on a per URL basis

Is there any way to inspect the cache content (keys, value sizes in bytes) for the HTML cache of a site? Ideally, I would like to be able to see a table with the columns URL/CacheKey Size (Bytes) ...
-1
votes
1answer
218 views

Cache cleared message every second in Azure Logs

We are trying to figure our an issue where our LIVE sites are getting down for 10 minutes everyday. While going through the Azure logs I am getting the following Warning: WARN web[standardValues] ...
1
vote
1answer
225 views

OutputCache with a Sitecore controller

Using Sitecore 9.0.2, I've got code in two areas: SitecoreComponent (for controller renderings) and API (for JS calls). I've got a controller that inherits from SitecoreController in the API folder ...
4
votes
1answer
336 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-...
3
votes
1answer
334 views

Cache not being cleared when changing partial design

I have a component that is cacheable within a placeholder where another component is placed, which is an SXA component. When I try to remove the SXA component inside the placeholder, the cache doesn't ...
7
votes
2answers
526 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 ...
0
votes
1answer
420 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 ...
2
votes
2answers
414 views

Which cache should be cleared after publish?

I have 2 CD and 2 CM servers. Whenever I add version and publish it, on the frontend only showing the previous versions except I recycle pool on all CD servers or I implement Clear all cache on each ...
1
vote
0answers
261 views

Why is Prefetch data(master) cleared by DefaultScavengeStrategy?

In CM logs I occasionally see Prefetch data(master) cleared by DefaultScavengeStrategy: 7744 20:32:18 WARN SqlDataProvider - Prefetch data(master) cache is cleared by Sitecore.Caching.Generics....
2
votes
1answer
136 views

Caching without Vary By option?

When selecting a component's Cacheability, the Vary By options control the cache key. What happens if I cache a rendering but do not specify a Vary By option? Also- does Sitecore generate a ...
1
vote
1answer
263 views

Sitecore Publishing.DisableDatabaseCaches Setting On a Content Delivery (CD) Server

Does <setting name="Publishing.DisableDatabaseCaches" value="true"/> have any effect at all on a CD server? I understand that the CM, which is the publishing server, would be ...
1
vote
1answer
367 views

Opening Content Editor taking too long time to load

I have configured an environment for Sitecore XP 8.2.7 and it seems it is not somehow using cache properly when opening Content Editor since it takes just too long time for the initial loading. What ...
3
votes
1answer
49 views

CacheSizes node vs cache settings in site definition

I'm setting up a bunch of site definitions for my project. I know I need to add them all to the publish:end and publish:end:remote events to clear caching. But when it comes to the entries in <...
2
votes
1answer
381 views

Cannot add item to Sitecore cache

I am trying to create a new Sitecore 9.0.1 XP cache and add an item to it. I can create the cache just fine. When I call the Add method it executes just fine but nothing is added to the cache. I ...
3
votes
1answer
506 views

Cache-control header shows private always

According to Sitecore config, if we set DisableBrowserCaching to true, then the Cache-control header value would change to no-cache, no-store. In my case, this is not happening and it always shows ...
4
votes
3answers
1k 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 ...
3
votes
1answer
231 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?
2
votes
1answer
541 views

How to set Rules Cache Size

According to the cachetuner, I should extend my "rules" cache. (By default it is 800KB) Does anybody now which setting in sitecore config I should adapt in order to achieve this?
0
votes
2answers
336 views

Sitecore Clean Up Agent not running

Is there a way to determine when the Sitecore cache Clean Up Agent runs? Also, can somoene provide instructions on how to enable the Sitecore Clean Up Agent. Sitecore does not provide instructions. ...