svn: /pear/peardoc/trunk/en/package/networking/net-ldap2/ schemacache.xml

[email protected] (Benedikt Hallinger) Wed, 31 Mar 2010 13:09:12 +0000
Newsgroups php.pear.doc
Message-ID <[email protected]>
beni                                     Wed, 31 Mar 2010 13:09:12 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=297220

Log:
* Some little notes on the cache parameters

Changed paths:
    U   pear/peardoc/trunk/en/package/networking/net-ldap2/schemacache.xml

Modified: pear/peardoc/trunk/en/package/networking/net-ldap2/schemacache.xml
===================================================================
--- pear/peardoc/trunk/en/package/networking/net-ldap2/schemacache.xml	2010-03-31 12:44:21 UTC (rev 297219)
+++ pear/peardoc/trunk/en/package/networking/net-ldap2/schemacache.xml	2010-03-31 13:09:12 UTC (rev 297220)
@@ -94,8 +94,8 @@
             <example><info><title>Initializing the SimpleFileSchemaCache</title></info>
         <programlisting role="php"><![CDATA[
 $myCacheConfig = array(
-        'path'    => '/tmp/Net_LDAP_Schema.cache',
-        'max_age' => 1200
+        'path'    => '/tmp/Net_LDAP_Schema.cache', // may reside on an linux tmpfs for improved performance
+        'max_age' => 1200                          // in seconds, use 0 for endlessly
 );
 $myCacheObject = new Net_LDAP2_SimpleFileSchemaCache($myCacheConfig);
 $ldap->registerSchemaCache($myCacheObject);
@@ -132,6 +132,7 @@
                                 Maximum cache age in seconds. The age of the cache is determined by the files
                                 last change time. If <literal>max_age</literal> is reached, Net_LDAP2 will fetch
                                 a fresh Net_LDAP2_Schema object which is then stored in the cache file again.
+                                Setting this to "0" will make the cache endlessly valid.
                             </entry>
                         </row>
                      </tbody>