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
2 answers
50 views

Latest Versioned Media Item is not Updating on Front End Website

We are using Versioned Media Items on our website. Our media URLs will be in the format - https://domain/-/media path.pdf?sc_lang=en&hash=6952A5CAEA1FC60BEF7CCDF29B0293E2 After we attach a pdf ...
0 votes
1 answer
48 views

Sitecore media with AlwaysAppendVersion set to true adds the revision to -1 for non default language versions

Environment: Sc 10, SXA 10x, Azure PaaS Sitecore adds query string param rev=-1 to the media url whenever there is no language version available for asset other than default Language. ex: /-/media/...
1 vote
2 answers
58 views

How to check cache key in Sitecore SXA?

I am working on Sitecore SXA and we are planning to implement cache. I have enabled it on Site level and added cache on rendering level for all the sites inside tenant. Now my question is how can we ...
  • 307
1 vote
2 answers
79 views

Sitecore cache in sxa

I am already using Sitecore cache in SXA. I am using it on site level. My question is if we have Sitecore cache on site level, do we need to add it on rendering level in Sitecore SXA? I am using the ...
  • 307
1 vote
0 answers
45 views

Sitecore - Edge Based Personalization - Move personalization to be handled by CDN

I recently asked about the personalization, and why it fails sometimes when using Cloudflare caching. I come to the conclusion that the way we have set up the personalaztion is that is based on using ...
  • 349
1 vote
1 answer
54 views

When does prefetch cache filled up completely

I was trying to see how much prefetch cache is being utilized on my CD server. I accessed cache status pages and found out that they are not getting filled after restarting the app (I made config ...
  • 195
0 votes
1 answer
67 views

HTML rendering cache performance logs

Recently, our Prod environment caused downtime due to some caching issue as reported by the agency that hosts our application. Sitecore support asked us to enable HTML Rendering Cache on select ...
0 votes
1 answer
74 views

Custom cache settings for JS/CSS resources

Is it possible to set the cache for JS and CSS files only based on some logic? When the url of the assets always changes (e.g SignUp.[versiontoken].css when the content is modified) then the cache ...
  • 181
0 votes
0 answers
21 views

Is it possible possible to clear rendering cache on publishing an item in Sitecore 10 [duplicate]

Is it possible to clear rendering cache on publishing an item in Sitecore 10? I need to configure a Specific Cache cleaner agent on Item Publish. Is there any way to achieve this programmatically or ...
0 votes
1 answer
128 views

Clearing Sitecore cache on publish for specific items

I want to clear custom cache when items at specific path are published. Here is what I tried so far. Solution 1: I created a custom event handler for publish:itemProcessed and publish:itemProcessed:...
  • 195
0 votes
0 answers
27 views

Cache is always null while accessing on publish:itemProcessed event

I have cached some data using Sitecore.Caching.CacheManager in my SXA application and it is working fine (checked CacheManager.FindCacheByName(ArticleCacheKey), it has data). I want to clear this ...
  • 195
0 votes
1 answer
206 views

Content not shown in site after publishing [duplicate]

Sitecore 10.0.1 Published changes of one particular component is not showing up in site. The content is there in web db. And cache is also cleared and no error logs. Workflow of the item is also ...
0 votes
0 answers
67 views

Sitecore SXA Cache not working for just one component

I have a page with few components on it, I have enabled caching for all the components and testing it using below line <!-- Cache Test for <Component Name>: Time = @System.DateTime.Now....
  • 195
1 vote
0 answers
42 views

Sitecore 9.0.2 and Azure PaaS based live website gives '502' error few times in a day

We have our public website in Sitecore 9.0.2 and it is in Azure PaaS infrastructure, from last few days the website gives '502 following error message' at specific times in a day(8 (am or pm), 9(am or ...
0 votes
0 answers
33 views

GlassMapper High Thread Locking Issue

I've deployed SC XP 9.1.1 on Azure App Service scaled environment and while performing Load test on CD, we have experienced High CPU utilization (98%). We have opened a ticket with Sitecore support ...
  • 43
0 votes
1 answer
244 views

Dianoga v5 with WebP, CDN and Sitecore HTML Cache

As part of a Sitecore upgrade to v10 we also upgraded to Dianoga V5.4.1. This site uses output/HTML cache extensively. We need to support browsers with and without webp support. The WebP CDN config ...
  • 1,164
0 votes
2 answers
306 views

How to clear cache when publish sitecore item programmatically in Sitecore 9.3?

I have a private method to publish an item to the Sitecore Web database programmatically. It's publishing the item to the Web database but not clearing the cache. I still see the data from the older ...
2 votes
2 answers
94 views

Sitecore 9.3 output cache VaryByCustom

In Sitecore 9.3 solution I've got a few MVC controllers returning JSON data. I was planning on using the standard ASP.NET MVC OutputCache attribute which works absolutely fine. However, I also require ...
0 votes
0 answers
105 views

Rendering Parameters values being null after sitecore upgrade

We have upgrade Sitecore solution from 9.1 to 10.11, as part of upgradation we had upgraded Sitecore databases and solution. We have around 80 plus sites and we are using sxa. Let me describe about my ...
  • 69
1 vote
1 answer
87 views

Is Donut caching in SXA with Forms supported?

I have come across an issue where if I configure a form on a page. How renderings are nested: Column Splitter (main) Container (/main/container-9/column-2-7) Sitecore Form Wrapper (/main/container-9/...
  • 4,981
0 votes
2 answers
124 views

How to ensure rendering cache invalidates after a direct edit to the .CSHTML file

I have a case where I needed to apply a hotfix to a component CSHTML view file. I edited the file on both of our Content Delivery servers. I also cleared the entire Sitecore cache via /sitecore/admin/...
0 votes
1 answer
70 views

Lost on HTML Output Caching in SXA [closed]

I am so lost on what I am doing.. so I am working on an SXA website. I have done cache tuning and now I am looking at working on the settings for various components. I literally have no idea what I ...
2 votes
2 answers
459 views

Set cache-control header to public

I know its missing a point of having Sitecore CMS, however we need to put a site behind Azure CDN. We do not care about personalization, analytics etc. Is there any out of box way to set cache-control ...
  • 191
1 vote
1 answer
292 views

ON PUBLISH , Pdf media item is not clearing the cache from CD server in 9.3

ON PUBLISH, Pdf media item is not clearing the cache from CD server in 9.3 and still shows the old pdf. The HTML Cache clears as expected in the CD but not the media item. Eventqueue folder in the CD ...
  • 81
0 votes
1 answer
36 views

Is item/data cache necessary for each site in a Sitecore instance?

As per the below link - cache configuration - is this cache to be configured from site definition point of view for each sites or configured in a single Sitecore instance where it has to be based ...
0 votes
1 answer
178 views

Custom Vary By option on Rendering instance

I am working on trying to add custom Vary By options to renderings. I have created and added the custom fields to the Caching section on a rendering directly. This works fine for setting caching on ...
  • 500
0 votes
1 answer
418 views

Where to see item cache or data cache is stored?

I have just enabled the below caches in web config file, now how to see the cache is storing in particular location or not ? If so which file or database table i have to check ? <setting name="...
1 vote
0 answers
108 views

SXA HtmlCacheClearer - only clears cache for first matching site

I have a problem where when I publish an item in an SXA site, the cache does not get cleared for that site. I have a Sitecore 9.0.2 solution and the SXA site has a two "Site Grouping" items; ...
-2 votes
1 answer
309 views

How to clear a sitecore rendering cache programatically [duplicate]

How can I clear an individual rendering cache from my site on publishing Sitecore item programmatically. I followed below article which did not work for me. Clear individual Rendering/Component Html ...
  • 13
2 votes
0 answers
43 views

Rendering not getting picked from cache

Sitecore 9.3 - JSS I was working on the performance aspects of my application. And I checked the details on Stats.aspx The different JsonDatRenderer are for different Websites hosted on the instance. ...
  • 1,158
1 vote
1 answer
785 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 ...
  • 844
4 votes
1 answer
142 views

SQL Replication doesn't clear CD caches on remote target

We have a multi-cd publishing situation I can use some help with. We are in an Azure PAAS situation, with the CM and 1 CD server located in the US. We also have a CD Server and SQL database in China (...
2 votes
1 answer
265 views

Implement custom session-like cache in Sitecore

Due to limitations outside my control I will have to store custom objects for each logged in user of my Sitecore site. Currently this is getting stored in session state. There is alot of pressure on ...
  • 1,164
2 votes
2 answers
290 views

Clearing an Item from Prefetch Cache in 9.2

We have based our implementation on Clear Sitecore cache for an item from cache programmatically to clear an item from prefetch cache as below Cache prefetchCache = GetPrefetchCache(Database database);...
  • 953
1 vote
1 answer
74 views

How do I change http cache control options when a page contains personalized components?

I am using Sitecore 9.3, sxa. I want to change the Http Header cache-control to no-store when an page or item on that page has been personalized. How do I go about doing this? Any articles/blogs or ...
  • 117
1 vote
1 answer
391 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 ...
2 votes
3 answers
216 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 ...
  • 4,981
0 votes
1 answer
73 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
1 answer
162 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 ...
  • 844
0 votes
1 answer
313 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 ...
  • 767
1 vote
0 answers
59 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
1 answer
356 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 ...
  • 1
0 votes
1 answer
263 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....
4 votes
2 answers
2k 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....
  • 73
1 vote
1 answer
685 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 ...
  • 51
0 votes
0 answers
169 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 ...
  • 171
2 votes
1 answer
580 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
1 answer
63 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?
3 votes
1 answer
409 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
1 answer
138 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 ...