Copied to clipboard

Flag this post as spam?

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


  • Nikolas van Etten 202 posts 162 karma points
    Apr 28, 2010 @ 15:13
    Nikolas van Etten
    0

    Caching xml based on value

    I need to make a caching mechanism based on a timestamp in the xml file to be cached.

    Timestamp is saved like this:

    <model to="2010-05-07T18:00:00Z" from="2010-04-28T12:00:00Z" name="EPS" runended="2010-04-28T09:20:00Z" nextrun="2010-04-28T21:20:00Z" termin="2010-04-28T00:00:00Z"/>

    So basically if current time is more than nextrun I need to retrieve the xml from the external server and cache it. Otherwise I should just use the cached file.

    Could this be done without too much work (kind of volunteer project)? 

  • Chris Dunn 210 posts 401 karma points
    May 06, 2010 @ 22:33
    Chris Dunn
    0

    Couldn't you just make this a scheduled task to run on a set schedule by using Umbraco scheduler or Windows task scheduler?  Would save you some work.  Or is this a JIT action, meaning an end user hits a page and at that point it runs the logic? 

    -Chris

     

Please Sign in or register to post replies

Write your reply to:

Draft