Hi All, I've got a strange problem with one of my Umbraco sites.
When looking through the tracelogs, I'm seeing that everytime someone visits any of the pages, that page is getting re-published!!
Here's a sample of my tracelog:-
2015-02-21 11:21:57,991 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'Login' with Id '1137' has been published.
2015-02-21 11:22:41,345 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:23:56,692 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 10] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:26:41,063 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'New from Websense: Products' with Id '3553' has been published.
2015-02-21 11:28:56,388 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 15] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:33:11,689 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 41] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:33:47,164 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:33:48,418 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 30] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:33:48,641 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 43] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:33:49,971 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 30] Content 'SS Home' with Id '1052' has been published.
2015-02-21 11:33:56,210 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'SS Home' with Id '1052' has been published.
What exact version of Umbraco are you using? And are there any custom integration using the Umbraco API any 3rd party packages being used that could cause the issue etc. ?
I suspect the same as Jan, it sounds like there is some custom code taking place. Based on my own experience, my gut feeling is that a node's property is being updated per page-load, e.g. in order to store the page views?
Thanks for the help. I've found the problem. Ages ago I put a "Counter" property in the master doc type and every time a page was loaded it increments the counter and then publishes the node. Dipstick!!
Glad you figured it out. No worries, I did the exact same thing on one of my early Umbraco builds. The other thing to look into is the number of versions (in the cmsContentVersion table), as each save/publish will create a new version.
Pages get published every visit to them
Hi All, I've got a strange problem with one of my Umbraco sites.
When looking through the tracelogs, I'm seeing that everytime someone visits any of the pages, that page is getting re-published!!
Here's a sample of my tracelog:-
2015-02-21 11:21:57,991 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'Login' with Id '1137' has been published. 2015-02-21 11:22:41,345 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:23:56,692 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 10] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:26:41,063 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'New from Websense: Products' with Id '3553' has been published. 2015-02-21 11:28:56,388 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 15] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:33:11,689 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 41] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:33:47,164 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:33:48,418 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 30] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:33:48,641 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 43] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:33:49,971 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 30] Content 'SS Home' with Id '1052' has been published. 2015-02-21 11:33:56,210 [31] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'SS Home' with Id '1052' has been published.
I'm not getting this in any other of my sites!
Any clues?
Mark
Hi Mark
What exact version of Umbraco are you using? And are there any custom integration using the Umbraco API any 3rd party packages being used that could cause the issue etc. ?
/Jan
Hi Mark,
I suspect the same as Jan, it sounds like there is some custom code taking place. Based on my own experience, my gut feeling is that a node's property is being updated per page-load, e.g. in order to store the page views?
Cheers,
- Lee
Hi Guys,
Thanks for the help. I've found the problem. Ages ago I put a "Counter" property in the master doc type and every time a page was loaded it increments the counter and then publishes the node. Dipstick!!
Thanks for the suggestions.
Glad you figured it out. No worries, I did the exact same thing on one of my early Umbraco builds. The other thing to look into is the number of versions (in the
cmsContentVersion
table), as each save/publish will create a new version.Take a look at the FALM Housekeeping package to help reduce the content versions:
https://our.umbraco.org/projects/backoffice-extensions/falm-housekeeping
Cheers,
- Lee
I installed FALM after I saw in the logs that it was being published
is working on a reply...