cache_unset_active
#1

Hi everyone,
I would know if cache_unset_active delete all the cache active.
For example:
  • User A log on to server
  • 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)
Reply
#2

That's not possible because PAWN is single-threaded. Also I think cache_unset_active doesn't delete the cache, cache_delete does.
Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)