ChemicalKicks
Well-known member
So the obvious question what would you recommend adding to the config to enable caching?
We're using memcached here.So the obvious question what would you recommend adding to the config to enable caching?
It's a shame those of us without caching won't be able to utilise it.
That'll teach us to be tight gits and use shared hosting
You can use the file cache on shared hostingIt's a shame those of us without caching won't be able to utilise it.
That'll teach us to be tight gits and use shared hosting
Ah thanks guys, I'll look into that.
I'll speak to the host and see if it's possible.
I had file caching on my old vb4 set-up I'm wondering what I specifically have to add to the config to turn it on thoughWe're using memcached here.
Ah thanks guys, I'll look into that.
I'll speak to the host and see if it's possible.
Nothing to really talk to your host about, just edit your config file with the correct options and chmod the filecache folders that is unless you are on a 100% managed server
What do we need to add to the config!!
$config['cache']['enabled'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir' => '{{FULL PATH TO CACHE DIR}}');
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching' => true,
'automatic_serialization' => true,
'lifetime' => 1800
);
Cheers Cezz,PHP:$config['cache']['enabled'] = true; $config['cache']['backend'] = 'File'; $config['cache']['backendOptions'] = array('cache_dir' => '{{FULL PATH TO CACHE DIR}}'); $config['cache']['frontend'] = 'Core'; $config['cache']['frontendOptions'] = array('caching' => true, 'automatic_serialization' => true, 'lifetime' => 1800 );
Replacing the {{FULL PATH TO CACHE DIR}} To the full path to your cache dir, recomended is /library/cache
Cheers Cezz,
Couple of things, once I create the directory and add this to the config will it the directory start to populate with the caching stuff? I'm confused to how this works, with vBulletin I added a line to the config but it appeared to create the directory all by itself.
When you say full path to the cache would "/library/cache" be enough?
FWIW, I'd recommend internal_data/cache, for ease of use.PHP:$config['cache']['enabled'] = true; $config['cache']['backend'] = 'File'; $config['cache']['backendOptions'] = array('cache_dir' => '{{FULL PATH TO CACHE DIR}}'); $config['cache']['frontend'] = 'Core'; $config['cache']['frontendOptions'] = array('caching' => true, 'automatic_serialization' => true, 'lifetime' => 1800 );
Replacing the {{FULL PATH TO CACHE DIR}} To the full path to your cache dir, recomended is /library/cache
FWIW, I'd recommend internal_data/cache, for ease of use.
Thanks guys.
Surprised it has to be an absolute full path rather than relative.
I noticed there is an empty internal_data/page_cache folder -- is that one for something else?FWIW, I'd recommend internal_data/cache, for ease of use.
It's for something else in the future...I noticed there is an empty internal_data/page_cache folder -- is that one for something else?
Yay!
Just tested it on my local and it works fine
You need to manually create the internal_data/cache directory otherwise you get an exception thrown.
Thanks again guys.
We use essential cookies to make this site work, and optional cookies to enhance your experience.