<div dir="ltr">Hi Mohan,<div><br></div><div>This is part of the legacy code carried away for a long time.</div><div><br></div><div>>>Why save here passwords hashes too? </div><div>Has all the column fields of Users module copied to the file, </div><div><br></div><div>>>Also why 2 separate files?</div><div>As the name suggests one to store user basic info which is independent of re-calculations and other with sharing access which bounds to re-calculation on change.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020 at 7:36 PM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 30/11/2020 11:09, Sukhdev Mohan wrote:<br>
> Hello All,<br>
> <br>
> Can somebody tell me if the files in this dir are failsafe for the db?<br>
> Is there any particular reason why vtiger creates these files and <br>
> doesn’t look at all at the db?<br>
<br>
It's a really old throwback to the sugar days.<br>
<br>
They are used to improve performance, the data is loaded into the <br>
Users_Privileges_Model.<br>
<br>
They are {re}calculated when things like sharing rules or a user setting <br>
are changed, or you can run a simple script like this:<br>
<br>
 > require_once('include/utils/CommonUtils.php');<br>
 ><br>
 > echo ("Regerating tabdata files ...<br />" . PHP_EOL);<br>
 >      perform_post_migration_activities();<br>
 > echo ("Done<br />" . PHP_EOL);<br>
 > echo "Recalculate Sharing Rules" . PHP_EOL;<br>
 >     RecalculateSharingRules();<br>
 > echo "Done" . PHP_EOL;<br>
<br>
HTH<br>
<br>
Al<br>
<br>
NB: As I recall in a galaxy far, far, away and a very long time ago, a <br>
chap called Adam Heinz did quite a bit of investigative work to remove this.<br>
<br>
<a href="http://lists.vtigercrm.com/pipermail/vtigercrm-developers/2012-January/021823.html" rel="noreferrer" target="_blank">http://lists.vtigercrm.com/pipermail/vtigercrm-developers/2012-January/021823.html</a><br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>