svn: /phpdoc/en/trunk/reference/mysqlnd_qc/ quickstart.xml
| From: | Ulf Wendel | Date: | Fri, 16 Mar 2012 14:01:07 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysqlnd_qc/ quickstart.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9908@lists.php.net to get a copy of this message | ||
uw Fri, 16 Mar 2012 14:01:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=324298
Log:
Cosmetics. Quickstart needs an update as such.
Changed paths:
U phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml
Modified: phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml 2012-03-16 12:35:50 UTC (rev 324297)
+++ phpdoc/en/trunk/reference/mysqlnd_qc/quickstart.xml 2012-03-16 14:01:07 UTC (rev 324298)
@@ -176,8 +176,39 @@
<section xml:id="mysqlnd-qc.quickstart.caching">
<title>Caching queries</title>
<para>
- The plugin can either cache all statements by default or, only those that begin
- with an SQL hint to enable caching. A SQL hint is a SQL standards compliant
+ There are four ways to trigger caching of a query.
+ <itemizedlist>
+ <listitem>
+ <simpara>Use of SQL hints on a per query basis</simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ User supplied callbacks to decide on a per query basis, for example, using
<function>mysqlnd_qc_is_select</function>
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <function>mysqlnd_set_cache_condition</function> for rule based automatic per
query decisions
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <literal><link
linkend="mysqlnd-qc.configuration">mysqlnd_qc.cache_by_default =
1</link></literal>
+ to cache all queries blindly
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Use of SQL hints and
+ <literal><link
linkend="mysqlnd-qc.configuration">mysqlnd_qc.cache_by_default =
1</link></literal>
+ are explained below. Please, refer to the function reference on
+ <function>mysqlnd_qc_is_select</function> for a description of using a callback and,
+ <function>mysqlnd_qc_set_cache_condition</function> on how to set rules for
automatic
+ caching.
+ </para>
+ <para>
+ A SQL hint is a SQL standards compliant
comment. As a SQL comment it is ignored by the database. A statement is considered
eligable for caching if it either begins with the SQL hint enabling caching
or it is a <literal>SELECT</literal> statement.