Copied to clipboard

Flag this post as spam?

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


  • David 20 posts 40 karma points
    Feb 01, 2010 @ 12:34
    David
    0

    Umbraco publish and unpublish configuration

    Good Moorning,

    I'm new with umbraco and i want to publish and unpublish content in my site setting dates.

    I can do that but it only works if i gave at least 5 minutes since de actual date and the publish date and i need to gave again more 5 minutes beetween the publish date and the unpublish date.

    How do I configure umbraco to check every minute if a content must me publish or unpublish ?

    Thanks,

    David Araújo

  • Seth Niemuth 275 posts 397 karma points
    Feb 01, 2010 @ 13:11
    Seth Niemuth
    0

    I just tested this and it worked for me. I unpublished a document and set the publish time to 1 minute from the current time and unpublish 1 minute after that and it worked as expected. Possibly you were putting in your local time rather than the time for the server (because they could be different)? Check the last edited time to get the server time (property tab of content). Are you wanting to unpublish and republish content every minute on an interval? You may want to check out scheduled tasks (http://our.umbraco.org/wiki/reference/files-and-folders/files-in-the-config-folder/umbracosettingsconfig). You can set up a scheduled task to run every minute which will call a page with asp net code that publishes and unpublishes the pages you want. The only problem you may have is if no visits your site in awhile then IIS hibernates until someone visits again at which point the counter will restart. You could use a ping service to ping your site on an interval so that your site doesn't hibernate if you want to avoid that. 

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 01, 2010 @ 13:15
    Dirk De Grave
    0

    I've checked the code and publishing/unpublishing mechanism is fired each 1 minute

     

    Cheers,

    /Dirk

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Feb 01, 2010 @ 13:47
    Sebastiaan Janssen
    0

    Maybe the clock on the server is ahead/behind the clock on your local machine?

Please Sign in or register to post replies

Write your reply to:

Draft