AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   How do I tell when the Admin Cache is done rebuilding? (https://forums.alliedmods.net/showthread.php?t=139832)

temp321 10-05-2010 17:32

How do I tell when the Admin Cache is done rebuilding?
 
Hello I would like to know when the admin cache has finished rebuilding so I can calculate how many admins are on the server.

I found OnRebuildAdminCache, but if I am reading it correctly, it only triggers at the beginning of a cache reset, not when it finishes.

http://docs.sourcemod.net/api/index....d=show&id=502&

Does anyone know the answer?

DJPlaya 09-16-2018 14:11

Re: How do I tell when the Admin Cache is done rebuilding?
 
This is a bit necro, but i guess rebuilding the Admin Cache dosent take longer then 1 Tick, so just use RequestFrame() after the Forward was triggered

asherkin 09-18-2018 19:43

Re: How do I tell when the Admin Cache is done rebuilding?
 
Quote:

Originally Posted by DJPlaya (Post 2615452)
This is a bit necro, but i guess rebuilding the Admin Cache dosent take longer then 1 Tick, so just use RequestFrame() after the Forward was triggered

If queries or web requests are involved, it could take any amount of time.

SM doesn't know when every plugin has finished making their admin cache changes, so it can't notify plugins of that state.


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

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