09.09.2014, 04:17
I've recently started using BlueG's MySQL plugin and i would like to know what "No active cache" means. My sql log has been spammed by it and i'd like to know about it.
|
It means you are using cache functions(the ones which start with cache_) without a valid cache. Basically you don't retrieve any data before using those functions.
|
|
Ty for explaining, i'd be happy if you could help me with this as well
pawn Код:
This is what i get in the SQL Log Код:
[23:37:23] [WARNING] cache_get_row_int - no active cache [23:37:23] [WARNING] cache_get_row_int - no active cache [23:37:23] [WARNING] cache_get_row_int - no active cache [23:37:23] [WARNING] cache_get_row_float - no active cache [23:37:23] [WARNING] cache_get_row_float - no active cache |
[15:53:17] [WARNING] cache_get_data - no active cache
new
Cache:car_cache,
query[128],
opis[128]
;
mysql_format(database_connection, query, sizeof(query), "SELECT * FROM `pojazdy` WHERE `id` = '%d'", carid);
mysql_check();
car_cache = mysql_query_dbg(query, true);
CarInfo[carid][cUID] = cache_get_row_int(0, 0);
CarInfo[carid][cModel] = cache_get_row_int(0, 1);
...
cache_delete(car_cache);