Raised This Month: $32 Target: $400
 8% 

sm_reloadadmins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 03-15-2019 , 04:42   sm_reloadadmins
Reply With Quote #1

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.
fragnichtnach is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-15-2019 , 05:59   Re: sm_reloadadmins
Reply With Quote #2

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.
__________________
asherkin is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 03-15-2019 , 19:33   Re: sm_reloadadmins
Reply With Quote #3

thanks
fragnichtnach is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:23.


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