Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [caching]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
63 views

How to check Sitecore web or stageweb cache in/sitecore/admin/cache.aspx?

I can see the CM cache in /sitecore/admin/cache.aspx. Do we have web or stageweb or different server cache inside /sitecore/admin/cache.aspx? I would like to clear the Sitecore cache in all the ...
CHUKKA PRASAD's user avatar
2 votes
1 answer
51 views

Are decimals supported when specifying cache size values?

Are decimals not supported when configuring cache sizes? I recently noticed that setting a cache size to 1.6MB resulted in the cache size being set to 16MB: Patch Config Below is the patch config ...
Marcel Gruber's user avatar
0 votes
1 answer
33 views

Why doesn't the cache.aspx total cache size line up with "running total" size in logs?

When I check /sitecore/admin/cache.aspx I see a total cache size value of around 334000000 (334 MB). The size is consistent with what I see when doing a quick calculation of the current run size of ...
Marcel Gruber's user avatar
0 votes
3 answers
87 views

Sitecore forms js scripts caching issue

Recently we came across an issue where the new changes made in a js file used in the Sitecore Forms were not reflecting. We fixed it temporarily purging the CDN cache. However, we are looking for a ...
Christopher Raja's user avatar
0 votes
2 answers
134 views

how to create patch for changing cache size limits in sitecore config

Using Sitecore 10.0.1 I need to change the Prefetch and AccessResultCacheSize to 500 MB The Prefetch cache size is set as below in one config file <prefetch hint="raw:AddPrefetch"> &...
coder's user avatar
  • 3
1 vote
0 answers
49 views

Issue with cacheHtml settings

Recently, we have enabled "cacheHtml" in the Site Config file for our PREPROD/PROD site as true. After that, we have noticed that a specific component on a page is getting cached, although ...
Somnath Das's user avatar
2 votes
2 answers
119 views

CD Tied to Publishing Target Not Updating

I am using the Publishing Service in a Sitecore 10.2 Production environment. We use deployment slots in Azure App Services. Each deployment slot has a dedicated Web database, Slot 1 has Web and Slot 2 ...
Kode's user avatar
  • 243
1 vote
0 answers
82 views

Custom SXA Rendering displaying Incorrect Data Source

I've built out a custom SXA component by cloning an existing component, creating a custom Controller/Repository/View and updating the template. The template has 3 fields on it, a Checkbox, a Droplist, ...
Verdoorn's user avatar
  • 143
1 vote
1 answer
46 views

Sitecore not setting cache directives on request headers

We have upgraded from Sitecore 9.3 to 10.3 which uses Headless services. Our instance is on sitecore managed cloud. On our 10.3 instance, we do not see the Cache-control and pragma directives on ...
snhchdhr96's user avatar
0 votes
1 answer
59 views

Which cache settings or session states scenarios could cause a rendering's personalization conditions to not evaluate after app pool recycle?

In my 9.0.2 MVC site, I have a personalized rendering on a page that has personalization enabled. Below is a contrived example of a set of rules that should always result in the rendering being hidden....
Marcel Gruber's user avatar
1 vote
4 answers
110 views

check if data cache and presentation cache are enabled

How to check if data cache and presentation cache are enabled or not in Sitecore? I have received the feedback to enable Sitecore OOTB data and presentation cache. How to check above settings?
Deepak's user avatar
  • 11
1 vote
6 answers
463 views

How to enable Caching on Page Level for a particular component

I want to enable caching on Spotlight Widget Rendering, which is added on multiple pages. And we want to enable it for 2 sites only. Can anyone please help me in this?
Vishal Khera's user avatar
2 votes
0 answers
80 views

Sitecore.Context.Item returning obsolete data that doesn't match what's in the web database

I have an odd issue that seems to be related to caching but I've never seen this before. Sitecore.Context.Item.Fields["OfficeContacts"].Value is returning a different value from Sitecore....
Erica Stockwell-Alpert's user avatar
0 votes
4 answers
442 views

Sitecore shutting down exception - cache are cleared

We are getting this exception frequently on both CM and CD that Sitecore is shutting down and Prefetch and other cache are getting cleared. Sitecore Prefetch master cache max size is 200 MB and when ...
Ruchi Gupta's user avatar
0 votes
1 answer
279 views

Getting Compile Error CS1545 after updating StackExchange.Redis

After updating the NuGet Package of StackExchange.Redis latest 2.6.96 error CS1545: Property, indexer, or event 'ConfigurationOptions.EndPoints' is not supported by the language; try directly ...
Pandurang Shinde's user avatar
2 votes
3 answers
548 views

When to enable Sitecore cache by query string

When should HTML Cache be enabled in Sitecore using "By Query String"? I believe one case would be search. Even in that case, on which component should it ideally be enabled?
samridhi sachdeva's user avatar
0 votes
3 answers
487 views

How can I get the datasource of a personalized sublayout (webforms)?

I'm working on enabling sublayout caching for personalized sublayouts. public class ContextCacheableSublayout : Sublayout { public override string GetCacheKey() { var cacheKey = base....
Erica Stockwell-Alpert's user avatar
1 vote
2 answers
330 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 ...
Sylesh JL's user avatar
  • 179
1 vote
1 answer
362 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/...
Suneeth Sunkari's user avatar
1 vote
2 answers
146 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 ...
Nisha's user avatar
  • 411
1 vote
2 answers
335 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 ...
Nisha's user avatar
  • 411
2 votes
1 answer
93 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 have come to a conclusion that the way we have set up the personalization is based on using ...
Samke11's user avatar
  • 359
1 vote
1 answer
355 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 ...
Imad's user avatar
  • 235
0 votes
1 answer
253 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 ...
Christian's user avatar
0 votes
1 answer
306 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 ...
iusmar's user avatar
  • 239
1 vote
1 answer
392 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:...
Imad's user avatar
  • 235
0 votes
1 answer
678 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 ...
Aswathy's user avatar
1 vote
0 answers
102 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 ...
Hina Thakkar's user avatar
0 votes
1 answer
444 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 ...
Jeroen's user avatar
  • 1,224
0 votes
2 answers
835 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 ...
Asad Syed's user avatar
2 votes
2 answers
168 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 ...
Dmitry Bastron's user avatar
0 votes
0 answers
179 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 ...
Reddy's user avatar
  • 125
1 vote
1 answer
163 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/...
Mark Gibbons's user avatar
  • 5,602
0 votes
2 answers
206 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/...
Marcel Gruber's user avatar
0 votes
1 answer
112 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 ...
Olivia Shettles's user avatar
3 votes
2 answers
1k 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 ...
Kamil C's user avatar
  • 501
1 vote
1 answer
508 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 ...
SNew's user avatar
  • 151
0 votes
1 answer
56 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 ...
Jeyanth Praveenkumar's user avatar
0 votes
1 answer
305 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 ...
Bic's user avatar
  • 550
0 votes
1 answer
1k 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="...
Jeyanth Praveenkumar's user avatar
2 votes
1 answer
231 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; ...
Matthew Dresser's user avatar
-2 votes
1 answer
495 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 ...
S. Ray's user avatar
  • 13
4 votes
0 answers
75 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. ...
NutsAndBolts's user avatar
  • 1,342
1 vote
1 answer
1k 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 ...
Hos's user avatar
  • 884
6 votes
1 answer
190 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 (...
Joe Ouimet's user avatar
2 votes
1 answer
459 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 ...
Jeroen's user avatar
  • 1,224
2 votes
2 answers
477 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);...
PVM's user avatar
  • 963
2 votes
1 answer
133 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 a page or item on that page has been personalized. How do I go about doing this? Any articles/blogs or ...
Danny's user avatar
  • 147
1 vote
1 answer
654 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 ...
Jagatheesh Menon's user avatar
2 votes
3 answers
344 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 ...
Mark Gibbons's user avatar
  • 5,602