mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
- translated some pages.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330683 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
783bb57259
commit
53cf21e427
3 changed files with 19 additions and 36 deletions
|
@ -8,14 +8,11 @@
|
|||
<preface xml:id="intro.opcache">
|
||||
&reftitle.intro;
|
||||
<para>
|
||||
OPcache improves PHP performance by storing precompiled script bytecode in
|
||||
shared memory, thereby removing the need for PHP to load and parse scripts
|
||||
on each request.
|
||||
OPcache はコンパイル済みのバイトコードを共有メモリに保存し、PHP がリクエストのたびにスクリプトを読み込み、パースする手間を省くことでパフォーマンスを向上させます。
|
||||
</para>
|
||||
<para>
|
||||
This extension is bundled with PHP 5.5.0 and later, and is
|
||||
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&url.pecl.package;ZendOpcache">available in PECL</link>
|
||||
for PHP versions 5.2, 5.3 and 5.4.
|
||||
このPHP拡張モジュールは PHP 5.5.0 以降のバージョンにバンドルされています。
|
||||
PHP 5.2, 5.3 and 5.4 では <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&url.pecl.package;ZendOpcache">PECL で利用可能です。</link>
|
||||
</para>
|
||||
</preface>
|
||||
|
||||
|
|
|
@ -4,41 +4,31 @@
|
|||
&reftitle.install;
|
||||
|
||||
<para>
|
||||
The process of installing OPcache varies depending on which version of PHP
|
||||
you're running. Please refer to the appropriate section below.
|
||||
OPcache のインストール手順は、どのバージョンの PHP を実行しているかによって異なります。
|
||||
詳細は以下の適切なセクションを参照してください。
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
If you want to use OPcache with
|
||||
<link xlink:href="&url.xdebug;">Xdebug</link>, you must load OPcache before
|
||||
Xdebug.
|
||||
OPcache を <link xlink:href="&url.xdebug;">Xdebug</link> と一緒に使う場合は、OPcache を Xdebug より前にロードさせなければいけません。
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<sect2 xml:id="opcache.installation.bundled">
|
||||
<title>PHP 5.5.0 and later</title>
|
||||
<title>PHP 5.5.0 以降の場合</title>
|
||||
|
||||
<para>
|
||||
By default, OPcache will be compiled as a shared extension. If you have
|
||||
disabled the building of default extensions with
|
||||
<option role="configure">--disable-all</option>, you must compile PHP with
|
||||
the <option role="configure">--enable-opcache</option> option for OPcache
|
||||
to be available.
|
||||
デフォルトで OPcache は共有ライブラリ形式の拡張モジュールとしてコンパイルされます。
|
||||
<option role="configure">--disable-all</option> を指定してデフォルトでコンパイルされる拡張モジュールを無効にしている場合は、OPcache が利用可能になるように <option role="configure">--enable-opcache</option> オプションを使って PHP をコンパイルしなければいけません。
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Once compiled, you can use the
|
||||
<link linkend="ini.zend-extension">zend_extension</link> configuration
|
||||
directive to load the OPcache extension into PHP. This can be done with
|
||||
<literal>zend_extension=/full/path/to/opcache.so</literal> on non-Windows
|
||||
platforms, and <literal>zend_extension=C:\path\to\php_opcache.dll</literal>
|
||||
on Windows.
|
||||
いったんコンパイルすると、<link linkend="ini.zend-extension">zend_extension</link> 設定ディレクティブを使って OPcache を PHP にロードできます。これは <literal>zend_extension=/full/path/to/opcache.so</literal> という設定で行えます。Windows の場合は <literal>zend_extension=C:\path\to\php_opcache.dll</literal> を使います。
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="opcache.installation.pecl">
|
||||
<title>PHP 5.2, 5.3 and 5.4</title>
|
||||
<title>PHP 5.2, 5.3, 5.4 の場合</title>
|
||||
|
||||
<para>
|
||||
&pecl.moved;
|
||||
|
@ -55,11 +45,10 @@
|
|||
</sect2>
|
||||
|
||||
<sect2 xml:id="opcache.installation.recommended">
|
||||
<title>Recommended php.ini settings</title>
|
||||
<title>推奨される php.ini の設定</title>
|
||||
|
||||
<para>
|
||||
The following settings are generally recommended as providing good
|
||||
performance:
|
||||
良好なパフォーマンスを得るために、一般的に推奨される設定は次の通りです。
|
||||
</para>
|
||||
|
||||
<informalexample>
|
||||
|
@ -76,18 +65,13 @@ opcache.enable_cli=1
|
|||
</informalexample>
|
||||
|
||||
<para>
|
||||
You may also want to consider disabling
|
||||
<link linkend="ini.opcache.save-comments">opcache.save_comments</link>
|
||||
and enabling
|
||||
<link linkend="ini.opcache.enable-file-override">opcache.enable_file_override</link>,
|
||||
however note that you will have to test your code before using these in
|
||||
production as they are known to break some frameworks and applications,
|
||||
particularly in cases where documentation comment annotations are used.
|
||||
<link linkend="ini.opcache.save-comments">opcache.save_comments</link> を無効にし、
|
||||
<link linkend="ini.opcache.enable-file-override">opcache.enable_file_override</link> を有効にしたいと思うかもしれませんが、この設定を行う前に実運用環境であなたのコードを必ずテストするようにしてください。なぜなら、この設定は特にドキュメント向けのコメントやアノテーションを使っている場合に、既存のフレームワークやアプリケーションが壊れることが既知の現象としてあるからです。
|
||||
</para>
|
||||
|
||||
<para>
|
||||
A full list of configuration directives supported by OPcache
|
||||
<link linkend="opcache.configuration">is also available</link>.
|
||||
OPcache がサポートしている設定ディレクティブの完全なリストは
|
||||
<link linkend="opcache.configuration">実行時設定</link> のページにあります。
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
|
2
reference/opcache/entities.functions.xml
Normal file
2
reference/opcache/entities.functions.xml
Normal file
|
@ -0,0 +1,2 @@
|
|||
&reference.opcache.functions.opcache-invalidate;
|
||||
&reference.opcache.functions.opcache-reset;
|
Loading…
Reference in a new issue