Coop1979
Well-known member
This has been plaguing me and I feel like there's a simple solution. I recently upgraded to PHP 7 and since then my cache setttings won't work. At first I thought it was because opcache and memcached weren't properly compiled into my install of PHP7, but I have subsequently rebuilt it and in my phpinfo page it shows Memcached and Opcache compiled correctly.
But, I'm still having troubles with the site throwing the "An unexpected error occurred. Please try again later." error.
This is my config section with the caching details:
But, I'm still having troubles with the site throwing the "An unexpected error occurred. Please try again later." error.
This is my config section with the caching details:
PHP:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'pc_';
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
'compression' => false,
'servers' => array(
array(
// your memcached server IP /address
'host' => 'localhost',
// memcached port
'port' => 11211,
)
)
);