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 118 posts 224 karma points
    Mar 09, 2016 @ 16:02
    Arjan Woldring
    0

    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 4860 posts 12126 karma points MVP 3x admin c-trib
    Mar 10, 2016 @ 08:46
    Jeroen Breuer
    0

    Not sure what usync.once is, but is something like this what you're looking for? https://gist.github.com/jamiepollock/5440e7d3c12fceaa4134

    Jeroen

  • Arjan Woldring 118 posts 224 karma points
    Mar 10, 2016 @ 09:12
    Arjan Woldring
    0

    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 1486 posts 9550 karma points MVP 3x c-trib
    Mar 10, 2016 @ 09:32
    Kevin Jump
    100

    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)

    https://github.com/KevinJump/uSync/issues/29

  • Arjan Woldring 118 posts 224 karma points
    Mar 10, 2016 @ 09:41
    Arjan Woldring
    0

    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:

Draft