Jump to content
Mathew Nwaneri

CacheException if OPcache is not enabled

Recommended Posts

Hi everyone, 

Been having problems with OPcache these past days.

had my hosting double check that it's all installed and enabled, this was confirmed that it is enabled.

when I activate debug, I get this error: 

Symfony\Component\Cache\Exception\CacheException

in vendor/symfony/symfony/src/Symfony/Component/Cache/Adapter/PhpFilesAdapter.php (line 32)

* @throws CacheException if OPcache is not enabled

     */

    public function __construct($namespace = '', $defaultLifetime = 0, $directory = null)

    {

        if (!static::isSupported()) {

            throw new CacheException('OPcache is not enabled');

        }

        parent::__construct('', $defaultLifetime);

        $this->init($namespace, $directory);

        $e = new \Exception();

 

Can somebody please help with a possible solution. 

Screen Shot 2019-08-26 at 12.20.32.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More