diff --git a/reference/opcache/functions/opcache-compile-file.xml b/reference/opcache/functions/opcache-compile-file.xml new file mode 100644 index 0000000000..6cc13a7cab --- /dev/null +++ b/reference/opcache/functions/opcache-compile-file.xml @@ -0,0 +1,84 @@ + + + + + + opcache_compile_file + Compiles and caches a PHP script without executing it + + + + &reftitle.description; + + booleanopcache_compile_file + stringfile + + + This function compiles a PHP script and adds it to the opcode cache without + executing it. This can be used to prime the cache after a Web server + restart by pre-caching files that will be included in later requests. + + + + + &reftitle.parameters; + + + file + + + The path to the PHP script to be compiled. + + + + + + + + &reftitle.returnvalues; + + Returns &true; if file was compiled successfully + &return.falseforfailure;. + + + + + &reftitle.errors; + + If file cannot be loaded or compiled, an error of + level E_WARNING is generated. You may use + @ to suppress this + warning. + + + + + &reftitle.seealso; + + + opcache_invalidate + + + + + + diff --git a/reference/opcache/functions/opcache-invalidate.xml b/reference/opcache/functions/opcache-invalidate.xml index 887850674a..dbd9cacae5 100644 --- a/reference/opcache/functions/opcache-invalidate.xml +++ b/reference/opcache/functions/opcache-invalidate.xml @@ -58,6 +58,7 @@ &reftitle.seealso; + opcache_compile_file opcache_reset diff --git a/reference/opcache/versions.xml b/reference/opcache/versions.xml index 59baba476f..30c2333d96 100644 --- a/reference/opcache/versions.xml +++ b/reference/opcache/versions.xml @@ -5,6 +5,7 @@ --> +