26.08.2014, 13:36
@Anou : To use cache functions in your code after a mysql_tquery, you MUST specify a callback in parameter of mysql_tquery.
Doing like this is the good way :
Whereas doing like this isn't :
The problem is that the cache is turned on only when the callback is called.
Doing like this is the good way :
pawn Код:
forward myCallback();
public myCallback()
{
new count = cache_get_row_count();
// etc
}
// in some function
mysql_tquery(1, "SELECT * FROM myTable", "myCallback");
pawn Код:
mysql_tquery(1, "SELECT * FROM myTable");
new count = cache_get_row_count();
// etc

