Jump to content

CacheException if OPcache is not enabled


Mathew Nwaneri

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...