{"id":42058,"date":"2026-11-25T22:08:24","date_gmt":"2026-11-25T22:08:24","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=42058"},"modified":"2026-11-25T22:08:24","modified_gmt":"2026-11-25T22:08:24","slug":"what-is-opcache-and-install-configure-in-linux","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/what-is-opcache-and-install-configure-in-linux\/","title":{"rendered":"What is opcache and Install \/ Configure in Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">OPcache is PHP&#039;s built-in bytecode cache. It keeps compiled scripts in shared memory so PHP doesn&#039;t have to parse and compile the same files on every request. This page explains how it works, then shows how to install, configure, check and tune it correctly on XAMPP, Debian\/Ubuntu and RHEL-family Linux systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OPcache, also known as <strong>PHP OPcode cache<\/strong>, is a built-in caching system in PHP that dramatically improves the performance of websites and applications. It works by storing precompiled script bytecode in shared memory, eliminating the need for PHP to parse and compile scripts on each request. This significantly reduces server load and speeds up execution, leading to faster page loading times for users.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s a breakdown of how OPcache works:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Compilation:<\/strong>&nbsp;When a PHP script is executed for the first time,&nbsp;PHP parses it and converts it into an intermediate representation called bytecode.<\/li>\n\n\n\n<li><strong>Caching:<\/strong>&nbsp;OPcache stores this bytecode in shared memory,&nbsp;which is accessible to all PHP processes running on the server.<\/li>\n\n\n\n<li><strong>Subsequent requests:<\/strong>&nbsp;When the same script is executed again,&nbsp;instead of re-compiling it,&nbsp;PHP retrieves the precompiled bytecode from the cache.&nbsp;This significantly reduces the processing time and resources required.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The benefits of using OPcache include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Faster page loading times:<\/strong>&nbsp;Websites can be up to&nbsp;<strong>3 times faster<\/strong>&nbsp;with OPcache enabled.<\/li>\n\n\n\n<li><strong>Reduced server load:<\/strong>&nbsp;By pre-compiling scripts,&nbsp;OPcache frees up CPU and memory for other tasks,&nbsp;making the server more responsive.<\/li>\n\n\n\n<li><strong>Improved scalability:<\/strong>&nbsp;Applications can handle more concurrent requests efficiently with OPcache.<\/li>\n\n\n\n<li><strong>Reduced disk I\/O:<\/strong>&nbsp;Pre-compiling scripts eliminates the need to read and parse files on each request,&nbsp;reducing disk usage.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to install OPcache in Linux?<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">$ \/opt\/lampp\/lampp stop\r\n$ apt-<span class=\"hljs-keyword\">get<\/span> update -y\r\n$ php --version\r\n$ apt-<span class=\"hljs-keyword\">get<\/span> install php8.2-opcache\r\n$ cd \/opt\/lampp\/etc\r\n\r\n$ vi php.ini\r\nzend_extension=opcache.so\r\n&#91;opcache]\r\nzend_extension=opcache.so\r\nopcache.enable=1\r\nopcache.memory_consumption=128\r\nopcache.max_accelerated_files=10000\r\nopcache.revalidate_freq=200\r\n\r\n\r\n$ \/opt\/lampp\/lampp restart<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Corrections to the example above<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The commands above mix two different PHP installations. XAMPP (<code>\/opt\/lampp<\/code>) ships its own PHP binary and extensions. <code>apt-get install php8.2-opcache<\/code> installs OPcache for the <strong>system<\/strong> PHP under <code>\/usr\/lib\/php\/<\/code>, and XAMPP never loads it. In the same way, <code>php --version<\/code> reports the system PHP, not the XAMPP one. The <code>php.ini<\/code> snippet also loads the extension twice. That produces a warning and does nothing useful.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a corrected procedure for XAMPP. XAMPP builds already include <code>opcache.so<\/code>, so no package install is needed:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Stop XAMPP<\/span>\nsudo \/opt\/lampp\/lampp stop\n\n<span class=\"hljs-comment\"># Check the PHP version XAMPP actually uses<\/span>\n\/opt\/lampp\/bin\/php -v\n\n<span class=\"hljs-comment\"># Confirm the bundled OPcache extension exists<\/span>\nsudo find \/opt\/lampp -name opcache.so\n\n<span class=\"hljs-comment\"># Edit XAMPP's php.ini<\/span>\nsudo vi \/opt\/lampp\/etc\/php.ini<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">&#91;opcache]\n; Load the extension exactly once. If php.ini already has a\n; commented ;zend_extension=opcache.so line, uncomment that one instead.\nzend_extension=opcache.so\nopcache.enable=1\nopcache.memory_consumption=128\nopcache.interned_strings_buffer=16\nopcache.max_accelerated_files=10000\nopcache.validate_timestamps=1\nopcache.revalidate_freq=2<\/code><\/span><\/pre>\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">sudo \/opt\/lampp\/lampp start\n\/opt\/lampp\/bin\/php -v<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">If OPcache loaded, the version output includes a line similar to <code>with Zend OPcache v8.2.x<\/code>. The original set <code>opcache.revalidate_freq=200<\/code>, which means an edited PHP file can take more than three minutes to show up. That&#039;s confusing during development, so the example uses the default of 2 seconds. The production tuning section covers when a longer interval, or disabling checks completely, makes sense.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The &quot;3 times faster&quot; figure in the original is not a guaranteed number. How much OPcache helps depends on the application, how many files it loads per request, and how much time goes to database or network calls. Measure your own application before and after enabling it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install OPcache for system PHP on Debian and Ubuntu<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For PHP installed from distribution packages (Apache with mod_php, or Nginx with PHP-FPM), install the OPcache package that matches the PHP version. It&#039;s often already installed as a dependency of the PHP CLI or FPM package.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Check the PHP version: <code>php -v<\/code>.<\/li>\n\n\n<li>Install the package: <code>sudo apt-get update &amp;&amp; sudo apt-get install -y php-opcache<\/code>. The <code>php-opcache<\/code> metapackage follows the distribution&#039;s default PHP version. If you use a specific version, for example one from a third-party repository, install <code>php8.3-opcache<\/code> or the matching versioned package instead.<\/li>\n\n\n<li>Enable the module, in case it isn&#039;t enabled yet: <code>sudo phpenmod opcache<\/code>.<\/li>\n\n\n<li>Put tuning settings in a separate file so package upgrades don&#039;t overwrite them, for example <code>\/etc\/php\/8.3\/fpm\/conf.d\/99-opcache-tuning.ini<\/code> (use <code>apache2\/conf.d<\/code> for mod_php).<\/li>\n\n\n<li>Restart the PHP process that serves web requests: <code>sudo systemctl restart php8.3-fpm<\/code> or <code>sudo systemctl restart apache2<\/code>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>zend_extension=opcache.so<\/code> line already exists in <code>\/etc\/php\/&lt;version&gt;\/mods-available\/opcache.ini<\/code>. Don&#039;t add it again in your tuning file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install OPcache on RHEL, Rocky, AlmaLinux and Fedora<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo dnf install -y php-opcache\n\n<span class=\"hljs-comment\"># Main OPcache config file on these distributions<\/span>\nsudo vi \/etc\/php.d\/<span class=\"hljs-number\">10<\/span>-opcache.ini\n\n<span class=\"hljs-comment\"># Restart PHP-FPM (and httpd if it proxies to FPM)<\/span>\nsudo systemctl restart php-fpm\nsudo systemctl restart httpd<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>10-opcache.ini<\/code> already contains the <code>zend_extension<\/code> line and commented defaults for every setting. Edit the values in place.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The newest PHP releases compile OPcache directly into PHP, so a separate package or <code>zend_extension<\/code> line may not exist. Check with <code>php -v<\/code>: if it already shows <code>with Zend OPcache<\/code>, skip the install step and only adjust the settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify that OPcache is working<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The CLI and the web server can read different <code>php.ini<\/code> files, and OPcache is disabled for the CLI by default (<code>opcache.enable_cli=0<\/code>). For that reason, <code>php -v<\/code> only proves the extension can load. Check the web context as well.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Which ini files does the CLI read?<\/span>\nphp --ini\n\n<span class=\"hljs-comment\"># Is the extension loaded and what are the effective values?<\/span>\nphp -i | grep -E <span class=\"hljs-string\">'opcache.enable|opcache.memory_consumption'<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">To check the web server, temporarily put this file in the document root, open it in a browser, then delete it:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"><span class=\"php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n<span class=\"hljs-comment\">\/\/ opcache-check.php: remove after use<\/span>\n$s = opcache_get_status(<span class=\"hljs-keyword\">false<\/span>);\nheader(<span class=\"hljs-string\">'Content-Type: text\/plain'<\/span>);\nprintf(<span class=\"hljs-string\">\"Enabled: %s\\n\"<\/span>, $s&#91;<span class=\"hljs-string\">'opcache_enabled'<\/span>] ? <span class=\"hljs-string\">'yes'<\/span> : <span class=\"hljs-string\">'no'<\/span>);\nprintf(<span class=\"hljs-string\">\"Cached scripts: %d\\n\"<\/span>, $s&#91;<span class=\"hljs-string\">'opcache_statistics'<\/span>]&#91;<span class=\"hljs-string\">'num_cached_scripts'<\/span>]);\nprintf(<span class=\"hljs-string\">\"Hit rate: %.2f%%\\n\"<\/span>, $s&#91;<span class=\"hljs-string\">'opcache_statistics'<\/span>]&#91;<span class=\"hljs-string\">'opcache_hit_rate'<\/span>]);\nprintf(<span class=\"hljs-string\">\"Memory used: %.1f MB\\n\"<\/span>, $s&#91;<span class=\"hljs-string\">'memory_usage'<\/span>]&#91;<span class=\"hljs-string\">'used_memory'<\/span>] \/ <span class=\"hljs-number\">1048576<\/span>);\nprintf(<span class=\"hljs-string\">\"Cache full: %s\\n\"<\/span>, $s&#91;<span class=\"hljs-string\">'cache_full'<\/span>] ? <span class=\"hljs-string\">'yes'<\/span> : <span class=\"hljs-string\">'no'<\/span>);<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">After the site has handled some traffic, the hit rate should be close to 100%. If <code>cache_full<\/code> is <code>yes<\/code>, or the <code>oom_restarts<\/code> and <code>hash_restarts<\/code> counters keep going up, the cache is too small. See the tuning table below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key settings and production tuning<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Setting<\/th><th>Default<\/th><th>What it controls<\/th><th>Typical production value<\/th><\/tr><\/thead><tbody><tr><td><code>opcache.enable<\/code><\/td><td>1<\/td><td>Turns OPcache on for web SAPIs<\/td><td>1<\/td><\/tr><tr><td><code>opcache.enable_cli<\/code><\/td><td>0<\/td><td>OPcache for command-line scripts<\/td><td>0 (CLI processes are short-lived)<\/td><\/tr><tr><td><code>opcache.memory_consumption<\/code><\/td><td>128<\/td><td>Shared memory for bytecode, in MB<\/td><td>128 to 512, depending on code size<\/td><\/tr><tr><td><code>opcache.interned_strings_buffer<\/code><\/td><td>8<\/td><td>Memory for deduplicated strings, in MB<\/td><td>16 to 32 for large frameworks<\/td><\/tr><tr><td><code>opcache.max_accelerated_files<\/code><\/td><td>10000<\/td><td>Maximum number of cached scripts<\/td><td>More than the number of PHP files in the application<\/td><\/tr><tr><td><code>opcache.validate_timestamps<\/code><\/td><td>1<\/td><td>Check files for changes<\/td><td>0 when code changes only via deployments<\/td><\/tr><tr><td><code>opcache.revalidate_freq<\/code><\/td><td>2<\/td><td>Seconds between change checks<\/td><td>2 to 60 if timestamps are validated<\/td><\/tr><tr><td><code>opcache.save_comments<\/code><\/td><td>1<\/td><td>Keep docblock comments<\/td><td>1 (annotation-based libraries need it)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To size <code>max_accelerated_files<\/code>, count the PHP files, including vendor libraries:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">find \/<span class=\"hljs-keyword\">var<\/span>\/www\/myapp -type f -name <span class=\"hljs-string\">'*.php'<\/span> | wc -l<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">With <code>opcache.validate_timestamps=0<\/code>, PHP never checks files on disk again, so changed code keeps running from the old cached copy until the cache is cleared. Add a cache reset to every deployment, usually <code>sudo systemctl reload php8.3-fpm<\/code> (or restarting Apache or XAMPP).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Running <code>opcache_reset()<\/code> from the command line only clears the CLI&#039;s own cache. It doesn&#039;t affect PHP-FPM or Apache. Reload the service, or call the function through a web request that you have protected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>Warning: Cannot load Zend OPcache &#8211; it was already loaded<\/td><td><code>zend_extension=opcache.so<\/code> appears more than once, as in the original snippet or in two ini files<\/td><td>Keep one line. Search with <code>grep -rn opcache.so \/etc\/php* \/opt\/lampp\/etc<\/code><\/td><\/tr><tr><td>Warning that OPcache must be loaded as a Zend extension<\/td><td>Used <code>extension=opcache.so<\/code><\/td><td>Change it to <code>zend_extension=opcache.so<\/code><\/td><\/tr><tr><td>OPcache missing from <code>phpinfo()<\/code><\/td><td>Edited the wrong <code>php.ini<\/code>, or didn&#039;t restart<\/td><td>Check &quot;Loaded Configuration File&quot; in <code>phpinfo()<\/code>, then restart FPM, Apache or XAMPP<\/td><\/tr><tr><td>Code changes don&#039;t appear<\/td><td><code>validate_timestamps=0<\/code> or a large <code>revalidate_freq<\/code><\/td><td>Reload PHP-FPM or Apache, or lower <code>revalidate_freq<\/code><\/td><\/tr><tr><td>Hit rate drops, frequent restarts<\/td><td>Cache memory or key slots are full<\/td><td>Increase <code>memory_consumption<\/code>, <code>interned_strings_buffer<\/code> or <code>max_accelerated_files<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Security notes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Don&#039;t leave status pages such as <code>opcache-check.php<\/code> or third-party OPcache dashboards publicly reachable. They expose file paths and configuration.<\/li>\n\n\n<li>Use <code>opcache.restrict_api=\/var\/www\/admin<\/code> so that only scripts under that path can call <code>opcache_reset()<\/code> and <code>opcache_get_status()<\/code>.<\/li>\n\n\n<li>On shared servers where several users share one PHP-FPM master, set <code>opcache.validate_permission=1<\/code> and <code>opcache.validate_root=1<\/code> so users can&#039;t read each other&#039;s cached scripts. Separate FPM pools per user are the stronger option.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For more server and language guides, see <a href=\"https:\/\/www.devopsschool.com\/blog\/category\/operating-systems\/linux\/\">More Linux tutorials<\/a> and <a href=\"https:\/\/www.devopsschool.com\/blog\/category\/programming\/php\/\">More PHP tutorials<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Is OPcache enabled by default in PHP?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">OPcache ships with PHP, and <code>opcache.enable<\/code> defaults to 1. On many distributions the extension still has to be installed or loaded with <code>zend_extension=opcache.so<\/code>. Run <code>php -v<\/code> or check <code>phpinfo()<\/code> to confirm.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I clear the OPcache after deploying new code?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Reload the PHP service that serves web requests, for example <code>sudo systemctl reload php8.3-fpm<\/code>, or restart Apache or XAMPP. Calling <code>opcache_reset()<\/code> from the CLI won&#039;t clear the web server&#039;s cache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does php -v show OPcache but my site isn&#039;t using it?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The CLI and the web server often read different ini files. Check the &quot;Loaded Configuration File&quot; and the opcache section in a <code>phpinfo()<\/code> page served by the web server, then restart PHP-FPM or Apache after editing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between OPcache and APCu?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">OPcache caches compiled PHP bytecode. APCu is a separate extension that caches application data such as arrays and objects in memory. Many applications use both.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I enable OPcache JIT?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">JIT is part of OPcache in PHP 8 and later. It needs a non-zero <code>opcache.jit_buffer_size<\/code>, and it mostly helps CPU-heavy code rather than typical database-bound web requests. Benchmark your own application before turning it on in production.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/programming\/php\/\">More PHP tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/operating-systems\/linux\/\">More Linux tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-login-to-linux-server-using-putty\/\">How to Login to Linux Server using Putty?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>OPcache is PHP&#039;s built-in bytecode cache. It keeps compiled scripts in shared memory so PHP doesn&#039;t have to parse and compile the same files on every request&#8230;. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4957,5150],"tags":[],"class_list":["post-42058","post","type-post","status-publish","format-standard","hentry","category-linux","category-php"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/42058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=42058"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/42058\/revisions"}],"predecessor-version":[{"id":80245,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/42058\/revisions\/80245"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=42058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=42058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=42058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}