diff --git a/reference/opcache/book.xml b/reference/opcache/book.xml
index 3d3162940d..c76c868b7c 100644
--- a/reference/opcache/book.xml
+++ b/reference/opcache/book.xml
@@ -8,14 +8,11 @@
&reftitle.intro;
- 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 がリクエストのたびにスクリプトを読み込み、パースする手間を省くことでパフォーマンスを向上させます。
- This extension is bundled with PHP 5.5.0 and later, and is
- available in PECL
- for PHP versions 5.2, 5.3 and 5.4.
+ このPHP拡張モジュールは PHP 5.5.0 以降のバージョンにバンドルされています。
+ PHP 5.2, 5.3 and 5.4 では PECL で利用可能です。
diff --git a/reference/opcache/configure.xml b/reference/opcache/configure.xml
index 28a740d032..120f244193 100644
--- a/reference/opcache/configure.xml
+++ b/reference/opcache/configure.xml
@@ -4,41 +4,31 @@
&reftitle.install;
- The process of installing OPcache varies depending on which version of PHP
- you're running. Please refer to the appropriate section below.
+ OPcache のインストール手順は、どのバージョンの PHP を実行しているかによって異なります。
+ 詳細は以下の適切なセクションを参照してください。
- If you want to use OPcache with
- Xdebug, you must load OPcache before
- Xdebug.
+ OPcache を Xdebug と一緒に使う場合は、OPcache を Xdebug より前にロードさせなければいけません。
- PHP 5.5.0 and later
+ PHP 5.5.0 以降の場合
- By default, OPcache will be compiled as a shared extension. If you have
- disabled the building of default extensions with
- , you must compile PHP with
- the option for OPcache
- to be available.
+ デフォルトで OPcache は共有ライブラリ形式の拡張モジュールとしてコンパイルされます。
+ を指定してデフォルトでコンパイルされる拡張モジュールを無効にしている場合は、OPcache が利用可能になるように オプションを使って PHP をコンパイルしなければいけません。
- Once compiled, you can use the
- zend_extension configuration
- directive to load the OPcache extension into PHP. This can be done with
- zend_extension=/full/path/to/opcache.so on non-Windows
- platforms, and zend_extension=C:\path\to\php_opcache.dll
- on Windows.
+ いったんコンパイルすると、zend_extension 設定ディレクティブを使って OPcache を PHP にロードできます。これは zend_extension=/full/path/to/opcache.so という設定で行えます。Windows の場合は zend_extension=C:\path\to\php_opcache.dll を使います。
- PHP 5.2, 5.3 and 5.4
+ PHP 5.2, 5.3, 5.4 の場合
&pecl.moved;
@@ -55,11 +45,10 @@
- Recommended php.ini settings
+ 推奨される php.ini の設定
- The following settings are generally recommended as providing good
- performance:
+ 良好なパフォーマンスを得るために、一般的に推奨される設定は次の通りです。
@@ -76,18 +65,13 @@ opcache.enable_cli=1
- You may also want to consider disabling
- opcache.save_comments
- and enabling
- opcache.enable_file_override,
- 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.
+ opcache.save_comments を無効にし、
+ opcache.enable_file_override を有効にしたいと思うかもしれませんが、この設定を行う前に実運用環境であなたのコードを必ずテストするようにしてください。なぜなら、この設定は特にドキュメント向けのコメントやアノテーションを使っている場合に、既存のフレームワークやアプリケーションが壊れることが既知の現象としてあるからです。
- A full list of configuration directives supported by OPcache
- is also available.
+ OPcache がサポートしている設定ディレクティブの完全なリストは
+ 実行時設定 のページにあります。
diff --git a/reference/opcache/entities.functions.xml b/reference/opcache/entities.functions.xml
new file mode 100644
index 0000000000..cf6ae2b8ba
--- /dev/null
+++ b/reference/opcache/entities.functions.xml
@@ -0,0 +1,2 @@
+&reference.opcache.functions.opcache-invalidate;
+&reference.opcache.functions.opcache-reset;