eberkund
Well-known member
I'm trying to switch from this,
To this,
But whenever I do, it works momentarily (for a minute) as I browse the site and then I get "An unexpected error has occured" on all pages until I remove all caching from the config.
I installed and tested memcached on my server using this:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-memcache-on-ubuntu-14-04
PHP:
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] ['cache_dir'] = '/root/campingbabble/public_html/internal_data/cache';
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] ['cache_id_prefix'] = 'xf_';
$config['cache']['frontendOptions'] ['caching'] = true;
$config['cache']['frontendOptions']['automatic_serialization'] = true;
$config['cache']['frontendOptions'] ['lifetime'] = 1800;
To this,
PHP:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
'compression' => false,
'servers' => array(
array(
'host' => 'localhost',
'port' => 11211,
)
)
);
But whenever I do, it works momentarily (for a minute) as I browse the site and then I get "An unexpected error has occured" on all pages until I remove all caching from the config.
I installed and tested memcached on my server using this:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-memcache-on-ubuntu-14-04