AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   sm_reloadadmins (https://forums.alliedmods.net/showthread.php?t=314959)

fragnichtnach 03-15-2019 04:42

sm_reloadadmins
 
What exactly is sm_reloadadmins (or DumpAdminCache) doing? I can't find the code in the sourcemod scripting files. That's the only thing I'm finding:
Code:

        DumpAdminCache(AdminCache_Groups, true);
        DumpAdminCache(AdminCache_Overrides, true);

This seems to create a small lag.

asherkin 03-15-2019 05:59

Re: sm_reloadadmins
 
It clears out SM's internal cache of admins and fires OnRebuildAdminCache, which is implemented in the admin source plugins to reload their data into the cache (if they're not dynamic, like admin-sql-threaded). admin-flatfile will reload admin_simple.ini and admin.cfg, admin-sql-prefetch will load admins from the database, etc. admin-flatfile shouldn't cause any noticeable impact unless your disk is dying, admin-sql-prefetch almost certainly will as it has to use blocking SQL queries, obviously 3rd party plugins could be doing whatever.

fragnichtnach 03-15-2019 19:33

Re: sm_reloadadmins
 
thanks


All times are GMT -4. The time now is 22:48.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.