Copied to clipboard

Flag this post as spam?

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


  • Richard Barg 358 posts 532 karma points
    Mar 14, 2013 @ 16:43
    Richard Barg
    0

    Version Compatibility - Checking Interval

    Is your package compatible w/version 4.71?

    what is the maximum no of seconds that the checking interval can be set?

    We would like to set it to check once a day which is 36,000 or so. 

  • Nigel Wilson 944 posts 2076 karma points
    Mar 14, 2013 @ 18:22
    Nigel Wilson
    0

    hi Richard

    Yes the code runs on 4.7.1 sites fine.

    Re the time delay - it should be fine as it is only a setting. The only consideration tho would be that the application pool would have to run continuously for the setting to really work as expected. Typically if you have no traffic on your site for a period of time, the application pool goes to sleep and therefore the scheduled task won't run / keep track of when it last run. Give it a go and monitor the recycle bin count each day if possible.

    The alternative would be to take the URL string within the umbracoSettings.config and load it as a server scheduled task - this would ensure it runs each day.

    Cheers, Nigel

  • Richard Barg 358 posts 532 karma points
    Mar 14, 2013 @ 19:55
    Richard Barg
    0

    Nigel,

    Thanks for the infor. I like your alternative. We will let you know how it goes.

    Richard

  • Nigel Wilson 944 posts 2076 karma points
    Mar 14, 2013 @ 20:17
    Nigel Wilson
    0

    Hi Richard

    Below is some code that I have used to run server scheduled tasks. It is saved as a vbs file.

    Just thought I'd share this just in case you were needing to google how to implement this solution.

    Call LogEntry()

    Sub LogEntry()
    'Force the script to finish on an error.
    On Error Resume Next

    'Declare variables
    Dim objRequest
    Dim URL

    Set objRequest = CreateObject("Microsoft.XMLHTTP")
    URL = "http://yoursite/base/etc"

    objRequest.open "POST", URL , false
    objRequest.Send

    'Set the object to nothing
    Set objRequest = Nothing

    End Sub

    Cheers

    Nigel

  • Nicky 4 posts 24 karma points
    Apr 23, 2013 @ 14:04
    Nicky
    0

    The last property of the scheduled task says: Number of days an item must have been in the recycle bin before it will be deleted.

    When I created a new item today, and delete it today. The scheduled task runs, and the item gets deleted, even when this parameter is 30 (stands for 30 days)

    The last parameter does nothing ... I think this is a problem that is still open and has to be fixed in an update?

    Cheers

    Nicky

  • Nigel Wilson 944 posts 2076 karma points
    Apr 23, 2013 @ 19:40
    Nigel Wilson
    0

    Hi Nicky

    What you describe is something I was not aware of, and not part of this original purpose of this thread.

    So, can you please post your scheduled task config setting so I can try and replicate.

    Thanks, Nigel

  • Nicky 4 posts 24 karma points
    Apr 24, 2013 @ 07:39
    Nicky
    0

    Hi Nigel,

    This is my config:
    <task log="true" alias="recycleBinManager" interval="21600" url="http://localhost/base/restExtRecycleBin/DeleteItems/10/30.aspx" />

    So after 6 hours this task should run, delete 10 items at time, and items must be 30 days in the trash bin.

    When a new item is in the trash bin, it will be deleted. Even when it is not 30 days in the trash bin.

    Thank you

    Nicky 

  • Nigel Wilson 944 posts 2076 karma points
    Apr 24, 2013 @ 22:23
    Nigel Wilson
    0

    Hi Nicky

    Tis a BUG - argghh. 

    I have corrected the code and uploaded an updated package to the project.

    You can simply download the package and drop the dll files into your site - no need to install the package.

    Thanks for identifiying the issue - mental note to self - test, test and test again

    Cheers

    Nige

  • Nicky 4 posts 24 karma points
    Apr 25, 2013 @ 08:03
    Nicky
    0

    Thank you, the update solved the problems!

    Cheers

    Nicky

Please Sign in or register to post replies

Write your reply to:

Draft