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
2answers
45 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
0answers
34 views

Is there a way to clear CD application cache programmatically from CM custom admin page with button click event?

I've been working on one requirement where data being cached in CD environments. From the admin screen (Customized screen in CMS), by clicking on one button, this particular cache data should be ...
0
votes
1answer
37 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
2answers
78 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
1answer
57 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
1answer
29 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
0answers
48 views

Caching - 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
1answer
60 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
0answers
43 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
1answer
104 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 ...
0
votes
0answers
25 views

CM content tree is not refreshed

we run to an issue where updates to an existing data templates are not showing from Sitecore content tree and when a user try t publish an item inherited from these templates these updates are not ...
0
votes
0answers
53 views

Clear cache on all SXA sites

I am usnig sitecore 9.3 with SXA, i am creating two site grouping which are having different login pages for the same site. when i publish items from master to web database cache is cleared for only ...
1
vote
0answers
21 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
1answer
120 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 ...
4
votes
1answer
85 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
1answer
114 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
vote
1answer
74 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);...
1
vote
1answer
64 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 ...
0
votes
0answers
30 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, ...
1
vote
1answer
183 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
2answers
97 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
45 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
99 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
175 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
48 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
205 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
167 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
2answers
1k 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....
0
votes
1answer
478 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
108 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
213 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
51 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
1answer
267 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
81 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
116 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 ...
2
votes
0answers
60 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
830 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
702 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/...
3
votes
1answer
926 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 ...
0
votes
1answer
50 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) ...
4
votes
1answer
524 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-...
1
vote
1answer
333 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 ...
-1
votes
1answer
379 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] ...
3
votes
1answer
530 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 ...
0
votes
1answer
727 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
518 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
351 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
171 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
393 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
452 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 ...