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
1answer
49 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 ...
2
votes
1answer
45 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
51 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
40 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
14 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
68 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 ...
1
vote
2answers
61 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
23 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
30 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
34 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
71 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
114 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
39 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
110 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
98 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
845 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
311 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
90 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
111 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
48 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
189 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
57 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 ...
1
vote
0answers
76 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
44 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
740 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
565 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/...
2
votes
1answer
634 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
46 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
399 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
254 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
289 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
396 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
481 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
446 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
289 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
148 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
304 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
389 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
410 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
597 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
2k 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
53 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 <...
3
votes
1answer
234 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
548 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
373 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. ...
-2
votes
1answer
314 views

Sitecore Custom Cache Size

I created sitecore custom cache. the cache is showing up in the cache.aspx page ( sitecore/admin/cache.aspx) but showing the size as zero. but when i put log in code i am seeing the data saved in ...
3
votes
0answers
203 views

How to set Media Cache Folder per site?

Context In my Sitecore (8.2.u7) instance I have 2 websites that share the same images. For this reason, I have setup Media.MediaLinkServerUrl e.g. cdn.mysite.com. This will also help me to integrate ...
5
votes
1answer
517 views

How to share Sitecore caches (item, data, prefetch,etc NOT session state) on Azure PaaS between Web Apps

I can't find any docs on this so I assume it's not possible, but... If you run Sitecore in Azure PaaS and have scale-out enabled (e.g. you're running 2x S3 instances) then can you have a shared/...
1
vote
1answer
327 views

Browser caching not working [duplicate]

I have implemented the browser caching on the Sitecore item as follows. public class BrowserCaching : HttpRequestProcessor { public override void Process(HttpRequestArgs args) { ...
1
vote
0answers
72 views

SXA 1.5 htmlCache not working

On a brand new Sitecore 8.2.5 + SXA 1.5 on Azure, deployed from the Sitecore templates, I cannot make the htmlCache working. The [html] cache stays empty. Has anyone encountered the same?