Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark Slade 48 posts 109 karma points
    Feb 21, 2015 @ 12:41
    Mark Slade
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 21, 2015 @ 16:26
    Jan Skovgaard
    1

    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

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Feb 21, 2015 @ 16:29
    Lee Kelleher
    1

    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

  • Mark Slade 48 posts 109 karma points
    Feb 21, 2015 @ 16:41
    Mark Slade
    101

    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.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Feb 21, 2015 @ 16:45
    Lee Kelleher
    0

    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

  • Mark Slade 48 posts 109 karma points
    Feb 21, 2015 @ 17:16
    Mark Slade
    0

    I installed FALM after I saw in the logs that it was being published

Please Sign in or register to post replies

Write your reply to:

Draft