Timeline for How to clear cache when publish sitecore item programmatically in Sitecore 9.3?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7 at 22:17 | history | edited | Marcel Gruber | CC BY-SA 4.0 |
Formatting improvements.
|
Dec 11, 2021 at 2:57 | comment | added | jrap | the correct order to clear caches manually would be prefetch, then data and then item. Also, your two item cache clears are redundant in your sample code. | |
Dec 9, 2021 at 17:26 | comment | added | jrap | That's fair x3mxray. I still despise the image but yes your answer does address the question posed. | |
Dec 9, 2021 at 9:48 | comment | added | x3mxray | Thank you for downvote). 1) Image illustrates a cycle of storages where does the item come from when it is rendered or gets by Database.GetItem(). It is just for better understanding of caches workflow. 2) Read the title of issue carefully. | |
Dec 9, 2021 at 6:45 | history | edited | Gaurav Agarwal | CC BY-SA 4.0 |
added 11 characters in body
|
Dec 9, 2021 at 0:18 | comment | added | jrap | I downvoted as 1) that image is misleading (see my recent posts on the subject) and 2) it doesn’t address the issue the OP is facing. As Hishaam mentioned- their are remote events that handle the cache clearing. Triggering a publish programmatically is fine. We need to know if we’re taking about a single instance or scaled. | |
Dec 8, 2021 at 22:15 | history | answered | x3mxray | CC BY-SA 4.0 |