ChemicalKicks
Well-known member
So the obvious question what would you recommend adding to the config to enable caching?
Ooh, now I'm curious!It's for something else in the future...
No trailing slash for me. If that full path is correct, did you chmod the folder to 777 to make sure it is writable?"/var/sites/t/the-sps.org/public_html/internal_data/cache" should I have a / on the end of that?
Just this:What path format you using
Bah, was bound to be something obvious. I hadn't changed the folder permissions, I'll give that a bash.No trailing slash for me. If that full path is correct, did you chmod the folder to 777 to make sure it is writable?
Just this:
$config['cache']['backendOptions'] = array('cache_dir' => 'internal_data/cache');
I'm using XAMPP on localhost so no need to chmod.
It's for something else in the future...
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir' => '/var/sites/t/the-sps.org/public_html/internal_data/cache');
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching' => true,
'automatic_serialization' => true,
'lifetime' => 1800
Looks like you may have missed the closing bracket...Bugger.
Using the following
Code:$config['cache']['backend'] = 'File'; $config['cache']['backendOptions'] = array('cache_dir' => '/var/sites/t/the-sps.org/public_html/internal_data/cache'); $config['cache']['frontend'] = 'Core'; $config['cache']['frontendOptions'] = array('caching' => true, 'automatic_serialization' => true, 'lifetime' => 1800
Parse error: syntax error, unexpected $end, expecting ')' in /var/sites/t/the-sps.org/public_html/library/config.php on line 39
?
);
Bugger.
Using the following
Code:$config['cache']['backend'] = 'File'; $config['cache']['backendOptions'] = array('cache_dir' => '/var/sites/t/the-sps.org/public_html/internal_data/cache'); $config['cache']['frontend'] = 'Core'; $config['cache']['frontendOptions'] = array('caching' => true, 'automatic_serialization' => true, 'lifetime' => 1800
Parse error: syntax error, unexpected $end, expecting ')' in /var/sites/t/the-sps.org/public_html/library/config.php on line 39
?
Error or nothing going in the folder?hmmmmmm closing the bracket doesn't work either.
Error or nothing going in the folder?
You've got a bad file yet.Both mate.
Nothing going in the folder and the same syntax error above except it's switched lines.
<?php
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = '{REMOVED}';
$config['db']['password'] = '{REMOVED}';
$config['db']['dbname'] = '{REMOVED}';
$config['superAdmins'] = '1';
// Cache
$config['cache']['enabled'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir' => '{REMOVED}');
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching' => true,
'automatic_serialization' => true,
'lifetime' => 1800
);
if ($_SERVER['REMOTE_ADDR'] == '{REMOVED}')
{
$config['debug'] = true;
}
<?php
$config['db']['host'] = '********';
$config['db']['port'] = '3306';
$config['db']['username'] = '********';
$config['db']['password'] = '********';
$config['db']['dbname'] = '********';
$config['superAdmins'] = '1';
$config['externalDataPath'] = 'data';
$config['externalDataUrl'] = 'http://static.the-sps.org/data';
$config['javaScriptUrl'] = 'http://static.the-sps.org/js';
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir' => '/var/sites/t/the-sps.org/public_html/internal_data/cache');
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching' => true,
'automatic_serialization' => true,
'lifetime' => 1800);
Hey Brogan,Refresh a few pages and then your FTP app, it will then show the files.
Here's mine.
$config['cache']['enabled'] = true;
$config['cache']['backend'] = 'File';
We use essential cookies to make this site work, and optional cookies to enhance your experience.