cvs: phpdoc-zh /reference/apc ini.xml reference.xml
| From: | Dallas Thunder | Date: | Thu, 09 Feb 2006 05:19:19 +0000 |
| Subject: | cvs: phpdoc-zh /reference/apc ini.xml reference.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2781@lists.php.net to get a copy of this message | ||
dallas Thu Feb 9 05:19:19 2006 UTC
Added files:
/phpdoc-zh/reference/apc ini.xml reference.xml
Log:
Added.
http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/apc/ini.xml?view=markup&rev=1.1 Index: phpdoc-zh/reference/apc/ini.xml +++ phpdoc-zh/reference/apc/ini.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: partial --> <section id="apc.configuration"> &reftitle.runtime; &extension.runtime; <para> ¾¡¹ÜĬÈ쵀 APC É趨¶ÔÓÚ´ó¶àÊý°²×°ÒѾûÎÊÌ⣬µ«×¨ÒµÈËÔ±Ó¦¿¼Âǵ÷ÕûÒÔϲÎÊý¡£ </para> <para> <table> <title>APC configuration options</title> <tgroup cols="4"> <thead> <row> <entry>Ãû³Æ</entry> <entry>ĬÈÏÖµ</entry> <entry>¿ÉÐ޸ķ¶Î§</entry> <entry>¸üмǼ</entry> </row> </thead> <tbody> <row> <entry>apc.enabled</entry> <entry>"1"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>apc.shm_segments</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.shm_size</entry> <entry>"30"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.optimization</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>apc.num_files_hint</entry> <entry>"1000"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.ttl</entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.gc_ttl</entry> <entry>"3600"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.cache_by_default</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.filters</entry> <entry>NULL</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.mmap_file_mask</entry> <entry>NULL</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.slam_defense</entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.file_update_protection</entry> <entry>"2"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.enable_cli</entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> <entry>> APC 3.0.6</entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.apc.enabled"> <term> <parameter>apc.enabled</parameter> <type>boolean</type> </term> <listitem> <para> <literal>apc.enabled</literal> ¿ÉÒÔÉè³É 0 À´½ûÓà APC¡£ÕâÖ÷ÒªÊÇÓÃÔÚµ± APC ±»¾²Ì¬±àÒëÈë PHP ʱ£¬ÒòΪûÓÐÆäËü·½·¨À´½ûÓÃÁË£¨±àÒëΪ DSO µÄʱºò£¬¿ÉÒÔ½« <literal>php.ini</literal> ÖÐµÄ <literal>extension</literal> ÐÐ×¢Ê͵ô£©¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.shm-segments"> <term> <parameter>apc.shm_segments</parameter> <type>integer</type> </term> <listitem> <para> ¶Ô±àÒëÆ÷»º´æÒª·ÖÅäµÄ¹²ÏíÄÚ´æ¿éµÄÊýÄ¿¡£Èç¹û APC ÓùâÁ˹²ÏíÄڴ浫ÊÇÒѾ½« <literal>apc.shm_size</literal> ÉèΪÁËϵͳËùÄÜÔÊÐíµÄ×î´óÖµ£¬¿ÉÒÔ³¢ÊÔÔö´ó´ËÖµ¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.shm-size"> <term> <parameter>apc.shm_size</parameter> <type>integer</type> </term> <listitem> <para> ÒÔ MB Ϊµ¥Î»µÄÿ¸ö¹²ÏíÄÚ´æ¿éµÄ´óС¡£Ä¬ÈÏʱ£¬ÓÐЩϵͳ£¨°üÀ¨´ó¶àÊý BSD ±äÖÖ£©µÄ¹²ÏíÄÚ´æ¿é´óС·Ç³£µÍ¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.optimization"> <term> <parameter>apc.optimization</parameter> <type>integer</type> </term> <listitem> <para> ÓÅ»¯¼¶±ð¡£ÉèΪ 0 Ôò½ûÓÃÓÅ»¯Æ÷£¬¸ü¸ßµÄÖµÔòʹÓøüÖ÷¶¯µÄÓÅ»¯¡£ÆÚÍû·Ç³£ÓÐÏÞµÄËÙ¶ÈÌáÉý¡£ÉÐÔÚÊÔÑéÖС£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.num-files-hint"> <term> <parameter>apc.num_files_hint</parameter> <type>integer</type> </term> <listitem> <para> Web ·þÎñÆ÷Éϵı»°üº¬»ò±»ÇëÇóµÄ²»Í¬Ô´ÎļþµÄÊýÄ¿µÄ´ó¸Å¹À¼Æ¡£Èç¹û²»È·¶¨ÔòÉèΪ 0 »òÈ¥µô´ËÏ´ËÉ趨Ö÷ÒªÓÃÔÚÓÐÊýǧ¸öÔ´ÎļþµÄÕ¾µã¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.ttl"> <term> <parameter>apc.ttl</parameter> <type>integer</type> </term> <listitem> <para> The number of seconds a cache entry is allowed to idle in a slot in case this cache entry slot is needed by another entry. Leaving this at zero means that your cache could potentially fill up with stale entries while newer entries won't be cached. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.gc-ttl"> <term> <parameter>apc.gc_ttl</parameter> <type>integer</type> </term> <listitem> <para> The number of seconds that a cache entry may remain on the garbage-collection list. This value provides a fail-safe in the event that a server process dies while executing a cached source file; if that source file is modified, the memory allocated for the old version will not be reclaimed until this TTL reached. Set to zero to disable this feature. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.cache-by-default"> <term> <parameter>apc.cache_by_default</parameter> <type>boolean</type> </term> <listitem> <para> On by default, but can be set to off and used in conjunction with positive <literal>apc.filters</literal> so that files are only cached if matched by a positive filter. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.filters"> <term> <parameter>apc.filters</parameter> <type>string</type> </term> <listitem> <para> A comma-separated list of POSIX extended regular expressions. If any pattern matches the source filename, the file will not be cached. Note that the filename used for matching is the one passed to include/require, not the absolute path. If the first character of the expression is a <literal>+</literal> then the expression will be additive in the sense that any files matched by the expression will be cached, and if the first character is a <literal>-</literal> then anything matched will not be cached. The <literal>-</literal> case is the default, so it can be left off. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.mmap-file-mask"> <term> <parameter>apc.mmap_file_mask</parameter> <type>string</type> </term> <listitem> <para> If compiled with MMAP support by using <literal>--enable-mmap</literal> this is the mktemp-style file_mask to pass to the mmap module for determing whether your mmap'ed memory region is going to be file-backed or shared memory backed. For straight file-backed mmap, set it to something like <literal>/tmp/apc.XXXXXX</literal> (exactly 6 <literal>X</literal>s). To use POSIX-style shm_open/mmap put a <literal>.shm</literal> somewhere in your mask. e.g. <literal>/apc.shm.XXXXXX</literal> You can also set it to <literal>/dev/zero</literal> to use your kernel's <literal>/dev/zero</literal> interface to anonymous mmap'ed memory. Leaving it undefined will force an anonymous mmap. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.slam-defense"> <term> <parameter>apc.slam_defense</parameter> <type>integer</type> </term> <listitem> <para> On very busy servers whenever you start the server or modify files you can create a race of many processes all trying to cache the same file at the same time. This option sets the percentage of processes that will skip trying to cache an uncached file. Or think of it as the probability of a single process to skip caching. For example, setting <literal>apc.slam_defense</literal> to <literal>75</literal> would mean that there is a 75% chance that the process will not cache an uncached file. So, the higher the setting the greater the defense against cache slams. Setting this to <literal>0</literal> disables this feature. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.file-update-protection"> <term> <parameter>apc.file_update_protection</parameter> <type>integer</type> </term> <listitem> <para> When you modify a file on a live web server you really should do so in an atomic manner. That is, write to a temporary file and rename (<literal>mv</literal>) the file into its permanent position when it is ready. Many text editors, cp, tar and other such programs don't do this. This means that there is a chance that a file is accessed (and cached) while it is still being written to. This <literal>apc.file_update_protection</literal> setting puts a delay on caching brand new files. The default is 2 seconds which means that if the modification timestamp (<literal>mtime</literal>) on a file shows that it is less than 2 seconds old when it is accessed, it will not be cached. The unfortunate person who accessed this half-written file will still see weirdness, but at least it won't persist. If you are certain you always atomically update your files by using something like rsync which does this correctly, you can turn this protection off by setting it to 0. If you have a system that is flooded with io causing some update procedure to take longer than 2 seconds, you may want to increase this a bit. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.enable-cli"> <term> <parameter>apc.enable_cli</parameter> <type>integer</type> </term> <listitem> <para> Mostly for testing and debugging. Setting this enables APC for the CLI version of PHP. Normally you wouldn't want to create, populate and tear down the APC cache on every CLI request, but for various test scenarios it is handy to be able to enable APC for the CLI version of APC easily. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/apc/reference.xml?view=markup&rev=1.1 Index: phpdoc-zh/reference/apc/reference.xml +++ phpdoc-zh/reference/apc/reference.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <!-- Purpose: basic.php --> <!-- Membership: pecl --> <reference id="ref.apc"> <title>APC ¿ÉÑ¡ PHP »º´æ</title> <titleabbrev>APC</titleabbrev> <partintro> <section id="apc.intro"> &reftitle.intro; <para> Alternative PHP Cache£¨APC£©ÊÇ PHP µÄÒ»¸öÃâ·Ñ¹«¿ªµÄÓÅ»¯´úÂ뻺´æ¡£ËüÓÃÀ´ÌṩÃâ·Ñ£¬¹«¿ª²¢ÇÒÇ¿½¡µÄ¼Ü¹¹À´»º´æºÍÓÅ»¯ PHP µÄÖмä´úÂë¡£ </para> </section> <section id="apc.installation"> &reftitle.install; <para> &pecl.moved; </para> <para> &pecl.info; <ulink url="&url.pecl.package;apc">&url.pecl.package;apc</ulink>. </para> <para> &pecl.windows.download; </para> <note> <simpara> ÔÚ Windows Ï£¬APC Ô¤ÆÚ´æÔÚ <literal>c:\tmp</literal> Ŀ¼£¬²¢ÇÒ¶Ô Web ·þÎñÆ÷½ø³Ì¿Éд¡£ </simpara> </note> <note> <simpara> ¸ü¶àÉîÈëÇҸ߶ÈרҵµÄÎĵµ£¬¼û¿ª·¢ÕßÌṩµÄ <ulink url="&url.apc.technotes;">TECHNOTES</ulink> Îļþ¡£ </simpara> </note> </section> &reference.apc.ini; <section id="apc.resources"> &reftitle.resources; &no.resource; </section> <section id="apc.constants"> &reftitle.constants; &no.constants; </section> </partintro> &reference.apc.functions; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/apc/ini.xml?view=markup&rev=1.1 Index: phpdoc-zh/reference/apc/ini.xml +++ phpdoc-zh/reference/apc/ini.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: partial --> <section id="apc.configuration"> &reftitle.runtime; &extension.runtime; <para> ¾¡¹ÜĬÈ쵀 APC É趨¶ÔÓÚ´ó¶àÊý°²×°ÒѾûÎÊÌ⣬µ«×¨ÒµÈËÔ±Ó¦¿¼Âǵ÷ÕûÒÔϲÎÊý¡£ </para> <para> <table> <title>APC configuration options</title> <tgroup cols="4"> <thead> <row> <entry>Ãû³Æ</entry> <entry>ĬÈÏÖµ</entry> <entry>¿ÉÐ޸ķ¶Î§</entry> <entry>¸üмǼ</entry> </row> </thead> <tbody> <row> <entry>apc.enabled</entry> <entry>"1"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>apc.shm_segments</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.shm_size</entry> <entry>"30"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.optimization</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>apc.num_files_hint</entry> <entry>"1000"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.ttl</entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.gc_ttl</entry> <entry>"3600"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.cache_by_default</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.filters</entry> <entry>NULL</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.mmap_file_mask</entry> <entry>NULL</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.slam_defense</entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.file_update_protection</entry> <entry>"2"</entry> <entry>PHP_INI_SYSTEM</entry> <entry></entry> </row> <row> <entry>apc.enable_cli</entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> <entry>> APC 3.0.6</entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.apc.enabled"> <term> <parameter>apc.enabled</parameter> <type>boolean</type> </term> <listitem> <para> <literal>apc.enabled</literal> ¿ÉÒÔÉè³É 0 À´½ûÓà APC¡£ÕâÖ÷ÒªÊÇÓÃÔÚµ± APC ±»¾²Ì¬±àÒëÈë PHP ʱ£¬ÒòΪûÓÐÆäËü·½·¨À´½ûÓÃÁË£¨±àÒëΪ DSO µÄʱºò£¬¿ÉÒÔ½« <literal>php.ini</literal> ÖÐµÄ <literal>extension</literal> ÐÐ×¢Ê͵ô£©¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.shm-segments"> <term> <parameter>apc.shm_segments</parameter> <type>integer</type> </term> <listitem> <para> ¶Ô±àÒëÆ÷»º´æÒª·ÖÅäµÄ¹²ÏíÄÚ´æ¿éµÄÊýÄ¿¡£Èç¹û APC ÓùâÁ˹²ÏíÄڴ浫ÊÇÒѾ½« <literal>apc.shm_size</literal> ÉèΪÁËϵͳËùÄÜÔÊÐíµÄ×î´óÖµ£¬¿ÉÒÔ³¢ÊÔÔö´ó´ËÖµ¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.shm-size"> <term> <parameter>apc.shm_size</parameter> <type>integer</type> </term> <listitem> <para> ÒÔ MB Ϊµ¥Î»µÄÿ¸ö¹²ÏíÄÚ´æ¿éµÄ´óС¡£Ä¬ÈÏʱ£¬ÓÐЩϵͳ£¨°üÀ¨´ó¶àÊý BSD ±äÖÖ£©µÄ¹²ÏíÄÚ´æ¿é´óС·Ç³£µÍ¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.optimization"> <term> <parameter>apc.optimization</parameter> <type>integer</type> </term> <listitem> <para> ÓÅ»¯¼¶±ð¡£ÉèΪ 0 Ôò½ûÓÃÓÅ»¯Æ÷£¬¸ü¸ßµÄÖµÔòʹÓøüÖ÷¶¯µÄÓÅ»¯¡£ÆÚÍû·Ç³£ÓÐÏÞµÄËÙ¶ÈÌáÉý¡£ÉÐÔÚÊÔÑéÖС£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.num-files-hint"> <term> <parameter>apc.num_files_hint</parameter> <type>integer</type> </term> <listitem> <para> Web ·þÎñÆ÷Éϵı»°üº¬»ò±»ÇëÇóµÄ²»Í¬Ô´ÎļþµÄÊýÄ¿µÄ´ó¸Å¹À¼Æ¡£Èç¹û²»È·¶¨ÔòÉèΪ 0 »òÈ¥µô´ËÏ´ËÉ趨Ö÷ÒªÓÃÔÚÓÐÊýǧ¸öÔ´ÎļþµÄÕ¾µã¡£ </para> </listitem> </varlistentry> <varlistentry id="ini.apc.ttl"> <term> <parameter>apc.ttl</parameter> <type>integer</type> </term> <listitem> <para> The number of seconds a cache entry is allowed to idle in a slot in case this cache entry slot is needed by another entry. Leaving this at zero means that your cache could potentially fill up with stale entries while newer entries won't be cached. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.gc-ttl"> <term> <parameter>apc.gc_ttl</parameter> <type>integer</type> </term> <listitem> <para> The number of seconds that a cache entry may remain on the garbage-collection list. This value provides a fail-safe in the event that a server process dies while executing a cached source file; if that source file is modified, the memory allocated for the old version will not be reclaimed until this TTL reached. Set to zero to disable this feature. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.cache-by-default"> <term> <parameter>apc.cache_by_default</parameter> <type>boolean</type> </term> <listitem> <para> On by default, but can be set to off and used in conjunction with positive <literal>apc.filters</literal> so that files are only cached if matched by a positive filter. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.filters"> <term> <parameter>apc.filters</parameter> <type>string</type> </term> <listitem> <para> A comma-separated list of POSIX extended regular expressions. If any pattern matches the source filename, the file will not be cached. Note that the filename used for matching is the one passed to include/require, not the absolute path. If the first character of the expression is a <literal>+</literal> then the expression will be additive in the sense that any files matched by the expression will be cached, and if the first character is a <literal>-</literal> then anything matched will not be cached. The <literal>-</literal> case is the default, so it can be left off. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.mmap-file-mask"> <term> <parameter>apc.mmap_file_mask</parameter> <type>string</type> </term> <listitem> <para> If compiled with MMAP support by using <literal>--enable-mmap</literal> this is the mktemp-style file_mask to pass to the mmap module for determing whether your mmap'ed memory region is going to be file-backed or shared memory backed. For straight file-backed mmap, set it to something like <literal>/tmp/apc.XXXXXX</literal> (exactly 6 <literal>X</literal>s). To use POSIX-style shm_open/mmap put a <literal>.shm</literal> somewhere in your mask. e.g. <literal>/apc.shm.XXXXXX</literal> You can also set it to <literal>/dev/zero</literal> to use your kernel's <literal>/dev/zero</literal> interface to anonymous mmap'ed memory. Leaving it undefined will force an anonymous mmap. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.slam-defense"> <term> <parameter>apc.slam_defense</parameter> <type>integer</type> </term> <listitem> <para> On very busy servers whenever you start the server or modify files you can create a race of many processes all trying to cache the same file at the same time. This option sets the percentage of processes that will skip trying to cache an uncached file. Or think of it as the probability of a single process to skip caching. For example, setting <literal>apc.slam_defense</literal> to <literal>75</literal> would mean that there is a 75% chance that the process will not cache an uncached file. So, the higher the setting the greater the defense against cache slams. Setting this to <literal>0</literal> disables this feature. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.file-update-protection"> <term> <parameter>apc.file_update_protection</parameter> <type>integer</type> </term> <listitem> <para> When you modify a file on a live web server you really should do so in an atomic manner. That is, write to a temporary file and rename (<literal>mv</literal>) the file into its permanent position when it is ready. Many text editors, cp, tar and other such programs don't do this. This means that there is a chance that a file is accessed (and cached) while it is still being written to. This <literal>apc.file_update_protection</literal> setting puts a delay on caching brand new files. The default is 2 seconds which means that if the modification timestamp (<literal>mtime</literal>) on a file shows that it is less than 2 seconds old when it is accessed, it will not be cached. The unfortunate person who accessed this half-written file will still see weirdness, but at least it won't persist. If you are certain you always atomically update your files by using something like rsync which does this correctly, you can turn this protection off by setting it to 0. If you have a system that is flooded with io causing some update procedure to take longer than 2 seconds, you may want to increase this a bit. </para> </listitem> </varlistentry> <varlistentry id="ini.apc.enable-cli"> <term> <parameter>apc.enable_cli</parameter> <type>integer</type> </term> <listitem> <para> Mostly for testing and debugging. Setting this enables APC for the CLI version of PHP. Normally you wouldn't want to create, populate and tear down the APC cache on every CLI request, but for various test scenarios it is handy to be able to enable APC for the CLI version of APC easily. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/apc/reference.xml?view=markup&rev=1.1 Index: phpdoc-zh/reference/apc/reference.xml +++ phpdoc-zh/reference/apc/reference.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <!-- Purpose: basic.php --> <!-- Membership: pecl --> <reference id="ref.apc"> <title>APC ¿ÉÑ¡ PHP »º´æ</title> <titleabbrev>APC</titleabbrev> <partintro> <section id="apc.intro"> &reftitle.intro; <para> Alternative PHP Cache£¨APC£©ÊÇ PHP µÄÒ»¸öÃâ·Ñ¹«¿ªµÄÓÅ»¯´úÂ뻺´æ¡£ËüÓÃÀ´ÌṩÃâ·Ñ£¬¹«¿ª²¢ÇÒÇ¿½¡µÄ¼Ü¹¹À´»º´æºÍÓÅ»¯ PHP µÄÖмä´úÂë¡£ </para> </section> <section id="apc.installation"> &reftitle.install; <para> &pecl.moved; </para> <para> &pecl.info; <ulink url="&url.pecl.package;apc">&url.pecl.package;apc</ulink>. </para> <para> &pecl.windows.download; </para> <note> <simpara> ÔÚ Windows Ï£¬APC Ô¤ÆÚ´æÔÚ <literal>c:\tmp</literal> Ŀ¼£¬²¢ÇÒ¶Ô Web ·þÎñÆ÷½ø³Ì¿Éд¡£ </simpara> </note> <note> <simpara> ¸ü¶àÉîÈëÇҸ߶ÈרҵµÄÎĵµ£¬¼û¿ª·¢ÕßÌṩµÄ <ulink url="&url.apc.technotes;">TECHNOTES</ulink> Îļþ¡£ </simpara> </note> </section> &reference.apc.ini; <section id="apc.resources"> &reftitle.resources; &no.resource; </section> <section id="apc.constants"> &reftitle.constants; &no.constants; </section> </partintro> &reference.apc.functions; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->