• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How the use the Caching?

Andy Huang

Well-known member
#2
Questions are probably better off in the general support and questions forum. This forum should really be used exclusively for user contributed tips and tricks.
 

Blandt

Well-known member
#3
It's not easy to post this as a tip since there are hundreds of OSs/Servers

case by case, no one size fit all unfortunately ... but as Andy said. If you ask for help with detailed system info, we'll guide you through it
 

Andy Huang

Well-known member
#5
Now that it is moved... Here's the answer you're looking for :)
Config file suggested in the tips thread consists two parts:

PHP:
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching'   =>  true,
                                            'automatic_serialization' => true,
                                            'lifetime'    => 1800
);
PHP:
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir'  => 'D:\xampp\xampp\htdocs\xf\upload\library\cache');
First part configures the settings about your cache. Generally speaking, you'd probably only need to change lifetime (how long your cache stays alive in the system) unless you have some very specific things you're trying to do.

Second part is more specific, and you would need to configure it according to your needs. The first line:
PHP:
$config['cache']['backend'] = 'File';
...tells the system what kind of cache backend you are intending to use. They are listed on the page you've linked. You take the last bit of what it says on the list and enter it into your parameter. In your particular case, for example, you would want to enter:
PHP:
$config['cache']['backend'] = 'Xcache';
Then, the backendOptions is the options array that you'd use to fine-tune your settings. For Xcache, there are two options: user, and password. So, you would want to enter them like this:
PHP:
$config['cache']['backendOptions'] = array(
						'user'		=> 'YOUR_XCACHE_USERNAME',
						'password'	=> 'YOUR_XCACHE_PASSWORD'
					);
Replace the capital letters part with your information accordingly, save, and upload.