Copied to clipboard

Flag this post as spam?

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

  • Arjan Woldring 123 posts 230 karma points
    Mar 09, 2016 @ 16:02
    Arjan Woldring

    uSync.once Functionality

    Hi Kevin,

    Amazing work on the rewrite of uSync. Learning a lot looking in your code. So thanks for that.

    While looking in your code, I couldn't find functionality like the file uSync.once in your previous version.

    Isn't this available anymore or did I miss something?

    Cheers! Arjan

  • Jeroen Breuer 4866 posts 12165 karma points MVP 3x admin c-trib
    Mar 10, 2016 @ 08:46
    Jeroen Breuer

    Not sure what usync.once is, but is something like this what you're looking for?


  • Arjan Woldring 123 posts 230 karma points
    Mar 10, 2016 @ 09:12
    Arjan Woldring

    Hi Jeroen,

    Thanks for your reply.

    Maybe I had to explain more... In previous versions of uSync you could add a file named uSync.once in the uSync folder. What it did is that uSync only runs the import once. So after an application pool restart uSync doesn't run the whole import every time. Which saves quite a lot startup time.

    The proces is:

    1. uSync.once file in uSync folder
    2. uSync does the import
    3. uSync changes the file to uSync.stop
    4. uSync Skips the import on every app start.

    The Gist you are linking too is also very useful. I already use that one. It prevents overwriting existing dictionary keys.

  • Kevin Jump 2129 posts 13459 karma points MVP 6x c-trib
    Mar 10, 2016 @ 09:32
    Kevin Jump

    Hi yeah, sorry i missed it when i put the new version together : (

    I've put it in the issue log, I will add the functionality back when i get a little time (hopefully in the next 4-5 days)

  • Arjan Woldring 123 posts 230 karma points
    Mar 10, 2016 @ 09:41
    Arjan Woldring

    Hi Kevin,

    Take your time. I think you are doing an amazing job. uSync is definately a package which I can't live without.

    Appreciate your reply. If I can do anything to test or something, please let me know.

    Cheers! Arjan

Please Sign in or register to post replies

Write your reply to: