Im using uSync to keep all things great, working well. Its installed and working away in the background : )
What i notice is sometimes i make a change to a dataType and uSync creates a another file for the dataType with extra characters to differentiate from the original dataType file created when the dataType was originally created.
Would like to know when this and how this happens ?
First you should check its not this issue https://github.com/KevinJump/uSync8/issues/73 which was fixed in v8.4.3 of uSync (all v8.x versions of uSync work on all v8 versions of Umbraco)
How it works
uSync creates the duplicate files if it thinks the datatype it is saving with a certain name isn't the same as the one it has one disk. (which for datatypes shouldn't really happen that often).
So when it attempts to save a file it checks for a file on disk with the same name, if it finds one it then checks.
if the key in the file matches the one of the item it is saving
if the alias of the item it is saving matches the one it is saving
if either of these is true then the item should save over the existing file and not create a new one.
So for datatypes (if it working correctly) - you should only ever get the duplicate files if.
You had a datatype,
you delete it
then you create a datatype with the same alias, but slightly different (so case of the alias or it has a - in the name of the alias capitalizes differently)
In this case we would expect the duplicate file name to kick in.
If that isn't what is happening and you are on uSync 8.4.3 or above then i think we will have something to fix.
Update (sorry fix is in 8.4.3 not 8.3 as previously stated.)
Yeah it probably is the case of having a datatype and deleting it and then recreating it. I have done this to try and keep my datatype store tidy : (
Good to know
i'll will let you know if its something else causing it but i dont think so. i have since created and changed dataTypes and files like you say are overwritten.
uSync creating duplicate files
Dear Umbraco Team
Im using uSync to keep all things great, working well. Its installed and working away in the background : )
What i notice is sometimes i make a change to a dataType and uSync creates a another file for the dataType with extra characters to differentiate from the original dataType file created when the dataType was originally created.
Would like to know when this and how this happens ?
Thanks Dibs
Hi
First you should check its not this issue https://github.com/KevinJump/uSync8/issues/73 which was fixed in v8.4.3 of uSync (all v8.x versions of uSync work on all v8 versions of Umbraco)
How it works
uSync creates the duplicate files if it thinks the datatype it is saving with a certain name isn't the same as the one it has one disk. (which for datatypes shouldn't really happen that often).
So when it attempts to save a file it checks for a file on disk with the same name, if it finds one it then checks.
if either of these is true then the item should save over the existing file and not create a new one.
So for datatypes (if it working correctly) - you should only ever get the duplicate files if.
In this case we would expect the duplicate file name to kick in.
If that isn't what is happening and you are on uSync 8.4.3 or above then i think we will have something to fix.
Update (sorry fix is in 8.4.3 not 8.3 as previously stated.)
Kevin
Cheers Kevin
Yeah it probably is the case of having a datatype and deleting it and then recreating it. I have done this to try and keep my datatype store tidy : (
Good to know
i'll will let you know if its something else causing it but i dont think so. i have since created and changed dataTypes and files like you say are overwritten.
Dibs : )
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.