XF 1.5 Cache

Onlyme

Active member
Cache Front-End
Configuring the front-end is easy, and involves simply adding the following lines to your library/config.php file:

$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';



File Back-End
The simplest kind of cache back-end is a simple file store, which stores cache data as files in the temporary directory of your server.

Configuration is equally simple:

$config['cache']['backend'] = 'File';

Few questions

1) Which is better out of the above.
2) All I need to do is add either of them to config and they will work, For example I don't need to edit the second one "file" do i?
3) how will I clear cache?

Thanks for your help guys
 
You need both a front-end and back-end for the cache to work. I don't recommend the file back-end, any performance improvements it brings are likely to be negligible. Go with memcached or APC(u) instead, if you can. XenForo will generally manage the cache automatically (but I hear this might not be the case with the file cache, which again, I would recommend against).
 
Last edited:
So your saying i would need to add both to config like this:

$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['backend'] = 'File';

I will look into memcached :)
 
Back
Top Bottom