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

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...

Important Information

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