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 ?
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.
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
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.
I've checked the code and publishing/unpublishing mechanism is fired each 1 minute
Cheers,
/Dirk
Maybe the clock on the server is ahead/behind the clock on your local machine?
is working on a reply...