This would save all the hassle of storing a result, executing a query, and restoring the previous result.
mysql_tquery(..., "MyCallback");
public MyCallback()
{
new Cache:res = cache_save();
for(new i; i != cache_num_rows(); i++)
{
FunctionThatCallsMysqlQuery();
cache_set_active(res);
}
cache_delete(res);
}
FunctionThatCallsMysqlQuery()
{
new Cache:res = mysql_query(...);
cache_delete(res);
}
Basically restore the previous active cache after the cache_delete call in FunctionThatCallsMysqlQuery.
I have to make sure to not break any existing code though, so gotta think this through.
This would save all the hassle of storing a result, executing a query, and restoring the previous result.
Basically restore the previous active cache after the
cache_delete
call inFunctionThatCallsMysqlQuery
. I have to make sure to not break any existing code though, so gotta think this through.