XF 1.1 Using cache methods, can you use both?

mrGTB

Well-known member
#1
I was reading this page here talking about Front-end and Back-end cache methods. I'm not sure if you can only use one, or use both front-end and back-end together?

I'm using File Cache right now for back-end cache, so I'm asking could I also also enable "front-end" cache added in the config.php file also? Or is it one or the other, but you can't use both front-end and back-end cache methods together.
 

RobParker

Well-known member
#2
Did you find the answer to this?

I have APC installed and am trying to find out the best way to utilise it. Should I turn on the front end cache as well as the back-end?

This is what my config file currently looks like:


## Caching
# http://xenforo.com/community/threads/speed-up-your-board-caching.5699/
# http://xenforo.com/community/threads/tip-use-apc.6456/
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
'caching' => true,
'automatic_serialization' => true,
'lifetime' => 10800
);
$config['cache']['backend'] = 'Apc';
$config['cache']['cacheSessions'] = true;
 

ChemicalKicks

Well-known member
#3
I was reading this page here talking about Front-end and Back-end cache methods. I'm not sure if you can only use one, or use both front-end and back-end together?

I'm using File Cache right now for back-end cache, so I'm asking could I also also enable "front-end" cache added in the config.php file also? Or is it one or the other, but you can't use both front-end and back-end cache methods together.
You can do both as far as I know, here's my config if it helps.

Code:
<?php
 
$config['db']['host'] = 'xxxxxx';
$config['db']['port'] = 'xxxxxx';
$config['db']['username'] = 'xxxxxx';
$config['db']['password'] = 'xxxxxx';
$config['db']['dbname'] = 'xxxxxx';
$config['superAdmins'] = '1';
 
$config['externalDataPath'] = 'data';
$config['externalDataUrl'] = 'http://static.url.org/data';
$config['javaScriptUrl'] = 'http://static.url.org/js';
 
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir'  => '/var/sites/t/url.org/public_html/internal_data/cache');
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching'  =>  true,
                                            'automatic_serialization' => true,
                                            'lifetime'    => 1800);
 
Top