cache_unset_active - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: cache_unset_active (
/showthread.php?tid=631827)
cache_unset_active -
pollo97 - 05.04.2017
Hi everyone,
I would know if
cache_unset_active delete all the cache active.
For example:
- User A execute a query that deletes the cache with cache_unset_active
- In the same moment, another user is loading his data on login
What's happen if cache_unset_active is executed during the data loading of second user?
Could be some issue?
(For example, the second user can't retrieve data from cache_get_value_index_int, because the cache doesn't exists anymore)
Re: cache_unset_active -
GoldenLion - 05.04.2017
That's not possible because PAWN is single-threaded. Also I think cache_unset_active doesn't delete the cache, cache_delete does.
Re: cache_unset_active -
pollo97 - 05.04.2017
You're sure that cache_unset_active doesn't delete the cache?
Because I tried and after cache_unset_active, any cache function doesn't return anything
Re: cache_unset_active -
Vince - 05.04.2017
You're only meant to use this if you use cache_save and cache_set_active, in order to differentiate between the many stored result sets.