0

I am facing issue with caching, whenever I changed the content and hitting first time, the URL Reflected the changes while hitting the URL the second time The updated changes not reflected. e.g. I changed the content for work page hit the url first time in browser(https://qa-cd.local.com/en-us/work), result will showing as expected while if I changed the content again for work page and hit that url, changes will not reflect, untill we will not do IIS reset.

6
  • Check you rendering on work item and check if you are using caching there, if you don't require caching you can remove from rendering level or Item level, one more thing you dn't need to see IISRESET, you can also check by sitecoreinstance/admin/cache.aspx, and clear cache Jul 14 at 9:44
  • @GauravAgarwal, I tried this( sitecoreinstance/admin/cache.aspx), but it's not worked for me and we not enabled any caching on rendering of item. Jul 14 at 9:50
  • Check if you are using indexes any chance for rendering that content. You may need to rebuild indexes in that case. Jul 14 at 17:29
  • @VinayJadav, we are not doing any indexing for the content, we are using graphQL to read the data from layout service. Jul 14 at 17:36
  • If this is a JSS app, you should mention that in the question and also add the tags for JSS. There may be someone who has faced the issue before. Jul 15 at 8:55
0

Check you rendering on work item and see check if you are using caching there, if you don't require caching you can remove from rendering level or Item level, one more thing you don't need to see IISRESET, you can also check by https://sitecoreinstance/admin/cache.aspx, and clear cache

Also if you want to have cache and wants changes to reflect then put your website in publish:end and publish:end:remote using below urls - https://doc.sitecore.com/en/developers/82/sitecore-experience-platform/configure-html-caching.htmlsitecore

https://sitecorerocksblog.wordpress.com/2016/10/15/sitecore-cache-clear-event-for-multisite-solutions/

<sitecore>

<events>

<event name="publish:end">

<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">                  

<sites hint="list">

<site>Site1</site>

<site>Site2</site>

</sites>
         
</handler>

</event>

<event name="publish:end:remote">

<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
    
<sites hint="list">

<site>Site1</site>

<site>Site2</site>

</sites>

</handler>

</event>

</events>

</sitecore>
1
  • Hi @Gaurav, I already tried both solution, as you provide, apart this, if you have other information regarding this, please share us. Jul 14 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.