How to disable PHP cache (OPcache/APCu)

Overview

In mixhost, PHP cache (OPcache / APCu) is enabled by default to improve PHP performance.
However, in some cases, it may take some time to reflect the changes in the PHP source, which may interfere with the operation.

We will show you how to invalidate the PHP cache (OPcache / APCu).

Disable PHP cache (OPcache/APCu)

Customers using jp17 or later servers

OPcache is enabled by default.
OPcache can be disabled by writing the following in the .htaccess file.

php_flag opcache.enable Off

Please note that the exact description method of .htaccess is not supported. For more information, please refer to Using .htaccess.

*APCu is disabled by default. Please note that it cannot be activated.

Customers using jp16 or earlier servers

OPcache/APCu is enabled by default.
You can disable it by following the steps below.

STEP 1: Login to cPanel.

Log in to cPanel.

STEP 2: Software > Click Select PHP Version.

PHPC001.png

STEP 3: Uncheck the right side of apcu and opcache.

Finally, click the Save button at the bottom of the screen.

PHPC002.png

This completes the invalidation of the PHP cache (OPcache/APCu).

Was this article helpful?
0 out of 0 found this helpful