Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
temp321
Junior Member
Join Date: Oct 2010
Old 10-05-2010 , 17:32   How do I tell when the Admin Cache is done rebuilding?
Reply With Quote #1

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?
temp321 is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 09-16-2018 , 14:11   Re: How do I tell when the Admin Cache is done rebuilding?
Reply With Quote #2

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
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux
DJPlaya is offline
Send a message via Skype™ to DJPlaya
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-18-2018 , 19:43   Re: How do I tell when the Admin Cache is done rebuilding?
Reply With Quote #3

Quote:
Originally Posted by DJPlaya View Post
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.
__________________
asherkin 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 01:08.


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