Hi,
I recently stopped using xcache and enabled opcache on my server. In the config.php file I currently have (after removing the backend store option for xcache):
Opcache is enabled and running however xenforo is not using it.
I'm quite sure I need to add the following to my config.php:
As per https://xenforo.com/help/cache/, however when I add the above to my config.php I get a white page with the message of an unexpected database error occurred, please try again later", I've viewed the source code but it doesn't show up with anything, the xenforo databases are labeled as xf_
I'm not sure what's causing this, but without the above code which gives me the error, my xenforo installation isn't utilising opcache properly.
I have also tried to use memcache as a backend cache, however after installing and activation it caused a 500 service error, so I removed it.
Any help would be appreciated, thanks!
I'm running 1.4.4 and using MySQL on a dedicated server.
I recently stopped using xcache and enabled opcache on my server. In the config.php file I currently have (after removing the backend store option for xcache):
Code:
<?php
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'xxx';
$config['db']['password'] = 'xxx';
$config['db']['dbname'] = 'xxx';
$config['superAdmins'] = 'xxx';
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
Opcache is enabled and running however xenforo is not using it.
I'm quite sure I need to add the following to my config.php:
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
As per https://xenforo.com/help/cache/, however when I add the above to my config.php I get a white page with the message of an unexpected database error occurred, please try again later", I've viewed the source code but it doesn't show up with anything, the xenforo databases are labeled as xf_
I'm not sure what's causing this, but without the above code which gives me the error, my xenforo installation isn't utilising opcache properly.
I have also tried to use memcache as a backend cache, however after installing and activation it caused a 500 service error, so I removed it.
Any help would be appreciated, thanks!
I'm running 1.4.4 and using MySQL on a dedicated server.