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:
uSync.once file in uSync folder
uSync does the import
uSync changes the file to uSync.stop
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.
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
Not sure what usync.once is, but is something like this what you're looking for? https://gist.github.com/jamiepollock/5440e7d3c12fceaa4134
Jeroen
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:
The Gist you are linking too is also very useful. I already use that one. It prevents overwriting existing dictionary keys.
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
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
is working on a reply...