Oracle 5.0 Reference Manual page 2722

Table of Contents

Advertisement

string(41) "/*qc=on*/SELECT id FROM test WHERE id = 2"
["origin"]=>
string(103) "#0 qc.php(19): mysqli->query('/*qc=on*/SELECT...')
#1 {main}"
["run_time"]=>
int(13)
["store_time"]=>
int(8)
["eligible_for_caching"]=>
bool(true)
["no_table"]=>
bool(false)
["was_added"]=>
bool(false)
["was_already_in_cache"]=>
bool(true)
}
}
See Also
Runtime configuration
mysqlnd_qc.collect_query_trace
mysqlnd_qc.query_trace_bt_depth
mysqlnd_qc.time_statistics
mysqlnd_qc.cache_no_table
mysqlnd_qc_get_normalized_query_trace_log
20.7.7.7.7.
mysqlnd_qc_set_cache_condition
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqlnd_qc_set_cache_condition
Set conditions for automatic caching
Description
bool mysqlnd_qc_set_cache_condition(
int condition_type,
mixed condition,
mixed condition_option);
Sets a condition for automatic caching of statements which do not contain the necessary SQL hints to
enable caching of them.
Parameters
condition_type
condition
Mysqlnd query result cache plugin (mysqlnd_qc)
Type of the condition. The only allowed value is
MYSQLND_QC_CONDITION_META_SCHEMA_PATTERN
Parameter for the condition set with condition_type. Parameter
type and structure depend on
If
condition_type
MYSQLND_QC_CONDITION_META_SCHEMA_PATTERN condition
must be a string. The string sets a pattern. Statements are cached
if table and database meta data entry of their result sets match
the pattern. The pattern is checked for a match with the
org_table
client server library. Please, check the MySQL Reference manual
for details about the two entries. The
concatenated with a dot (.) before matched against condition.
Pattern matching supports the wildcards
condition_type
equals
meta data entries provided by the underlying MySQL
2702
.
and
db
and
values are
db
org_table
and _. The wildcard
%
will
%

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents