Questions tagged [caching]
Questions about all possible caching mechanisms in Sitecore, Sitecore projects or Sitecore related modules
153
questions
2
votes
2
answers
100
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 ...
1
vote
0
answers
37
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, ...
0
votes
1
answer
35
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 ...
0
votes
1
answer
47
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....
1
vote
4
answers
50
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?
2
votes
6
answers
210
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?
2
votes
0
answers
63
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....
0
votes
3
answers
145
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 ...
0
votes
1
answer
173
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 ...
2
votes
3
answers
337
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?
0
votes
3
answers
331
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....
1
vote
2
answers
214
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 ...
1
vote
1
answer
226
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
113
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 ...
1
vote
2
answers
245
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 ...
1
vote
0
answers
65
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 ...
1
vote
1
answer
231
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 ...
0
votes
1
answer
192
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
173
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 ...
1
vote
1
answer
253
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:...
0
votes
1
answer
543
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 ...
1
vote
0
answers
87
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
1
answer
397
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 ...
0
votes
2
answers
650
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
136
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
155
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 ...
1
vote
1
answer
136
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/...
0
votes
2
answers
169
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
96
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
864
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 ...
1
vote
1
answer
438
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 ...
0
votes
1
answer
51
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
269
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 ...
0
votes
1
answer
820
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="...
2
votes
1
answer
191
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
423
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 ...
3
votes
0
answers
66
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
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 ...
6
votes
1
answer
170
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
350
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 ...
2
votes
2
answers
393
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);...
2
votes
1
answer
113
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 ...
1
vote
1
answer
554
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
305
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
1
answer
96
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
211
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
1
answer
391
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
0
answers
79
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 ...
1
vote
1
answer
498
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
1
answer
314
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....