Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore "HtmlCacheClearer clearing HTML caches for all sites"

In the Sitecore(v6.6 130404) log it is loaded with "HtmlCacheClearer clearing HTML caches for all sites" log entries.

Log extract: (Every second it records these logs)

ManagedPoolThread #3 18:59:22 INFO  HtmlCacheClearer clearing HTML caches for all sites (1).
ManagedPoolThread #3 18:59:22 INFO  HtmlCacheClearer done.
ManagedPoolThread #3 18:59:22 INFO  HtmlCacheClearer clearing HTML caches for all sites (1).
ManagedPoolThread #3 18:59:22 INFO  HtmlCacheClearer done.
ManagedPoolThread #3 18:59:23 INFO  HtmlCacheClearer clearing HTML caches for all sites (1).
ManagedPoolThread #3 18:59:23 INFO  HtmlCacheClearer done.
ManagedPoolThread #3 18:59:23 INFO  HtmlCacheClearer clearing HTML caches for all sites (1).
ManagedPoolThread #3 18:59:23 INFO  HtmlCacheClearer done.
ManagedPoolThread #3 18:59:23 INFO  HtmlCacheClearer clearing HTML caches for all sites (1).
ManagedPoolThread #3 18:59:23 INFO  HtmlCacheClearer done.
ManagedPoolThread #3 18:59:24 INFO  HtmlCacheClearer clearing HTML caches for all sites (1).
ManagedPoolThread #3 18:59:24 INFO  HtmlCacheClearer done.

How can I get rid of this?

like image 612
Dhanuka777 Avatar asked Mar 24 '23 07:03

Dhanuka777


1 Answers

Sitecore.Publishing.HtmlCacheClearer.ClearCode() method (which logs this information) is executed every time the Publish execution is done (on local server or remotely).

It looks like your application executes Publish quite often. If you think this might be a bug, try to investigate which items are being published (e.g. by adding a hander to publish:itemProcessing event) and check what calls Publish for them.

like image 174
Marek Musielak Avatar answered Apr 01 '23 01:04

Marek Musielak