forked from leftypol/leftypol
config.php: update cache documentation
This commit is contained in:
parent
2892520438
commit
14eae7e9f4
1 changed files with 33 additions and 25 deletions
|
@ -117,18 +117,26 @@
|
|||
|
||||
/*
|
||||
* On top of the static file caching system, you can enable the additional caching system which is
|
||||
* designed to minimize SQL queries and can significantly increase speed when posting or using the
|
||||
* moderator interface. APC is the recommended method of caching.
|
||||
* designed to minimize request processing can significantly increase speed when posting or using
|
||||
* the moderator interface.
|
||||
*
|
||||
* http://tinyboard.org/docs/index.php?p=Config/Cache
|
||||
* https://github.com/vichan-devel/vichan/wiki/cache
|
||||
*/
|
||||
|
||||
// Uses a PHP array. MUST NOT be used in multiprocess environments.
|
||||
$config['cache']['enabled'] = 'php';
|
||||
// $config['cache']['enabled'] = 'xcache';
|
||||
// $config['cache']['enabled'] = 'apc';
|
||||
// The recommended in-memory method of caching. Requires the extension. Due to how APCu works, this should be
|
||||
// disabled when you run tools from the cli.
|
||||
// $config['cache']['enabled'] = 'apcu';
|
||||
// The Memcache server. Requires the memcached extension, with a final D.
|
||||
// $config['cache']['enabled'] = 'memcached';
|
||||
// The Redis server. Requires the extension.
|
||||
// $config['cache']['enabled'] = 'redis';
|
||||
// Use the local cache folder. Slower than native but available out of the box and compatible with multiprocess
|
||||
// environments. You can mount a ram-based filesystem in the cache directory to improve performance.
|
||||
// $config['cache']['enabled'] = 'fs';
|
||||
// Technically available, offers a no-op fake cache. Don't use this outside of testing or debugging.
|
||||
// $config['cache']['enabled'] = 'none';
|
||||
|
||||
// Timeout for cached objects such as posts and HTML.
|
||||
$config['cache']['timeout'] = 60 * 60 * 48; // 48 hours
|
||||
|
@ -722,18 +730,18 @@
|
|||
// a link to an email address or IRC chat room to appeal the ban.
|
||||
$config['ban_page_extra'] = '';
|
||||
|
||||
// Pre-configured ban reasons that pre-fill the ban form when clicked.
|
||||
// To disable, set $config['ban_reasons'] = false;
|
||||
$config['ban_reasons'] = array(
|
||||
array( 'reason' => 'Low-quality posting',
|
||||
'length' => '1d'),
|
||||
array( 'reason' => 'Off-topic',
|
||||
'length' => '1d'),
|
||||
array( 'reason' => 'Ban evasion',
|
||||
'length' => '30d'),
|
||||
array( 'reason' => 'Illegal content',
|
||||
'length' => ''),
|
||||
);
|
||||
// Pre-configured ban reasons that pre-fill the ban form when clicked.
|
||||
// To disable, set $config['ban_reasons'] = false;
|
||||
$config['ban_reasons'] = array(
|
||||
array( 'reason' => 'Low-quality posting',
|
||||
'length' => '1d'),
|
||||
array( 'reason' => 'Off-topic',
|
||||
'length' => '1d'),
|
||||
array( 'reason' => 'Ban evasion',
|
||||
'length' => '30d'),
|
||||
array( 'reason' => 'Illegal content',
|
||||
'length' => ''),
|
||||
);
|
||||
|
||||
// How often (minimum) to purge the ban list of expired bans (which have been seen).
|
||||
$config['purge_bans'] = 60 * 60 * 12; // 12 hours
|
||||
|
@ -1912,15 +1920,15 @@
|
|||
'max_message_length' => 240
|
||||
];
|
||||
|
||||
//Securimage captcha
|
||||
//Note from lainchan PR: "TODO move a bunch of things here"
|
||||
//Securimage captcha
|
||||
//Note from lainchan PR: "TODO move a bunch of things here"
|
||||
|
||||
$config['spam']['valid_inputs'][]='captcha';
|
||||
$config['error']['securimage']=array(
|
||||
'missing'=>'The captcha field was missing. Please try again',
|
||||
'empty'=>'Please fill out the captcha',
|
||||
'bad'=>'Incorrect or expired captcha',
|
||||
);
|
||||
$config['spam']['valid_inputs'][]='captcha';
|
||||
$config['error']['securimage']=array(
|
||||
'missing'=>'The captcha field was missing. Please try again',
|
||||
'empty'=>'Please fill out the captcha',
|
||||
'bad'=>'Incorrect or expired captcha',
|
||||
);
|
||||
|
||||
// Meta keywords. It's probably best to include these in per-board configurations.
|
||||
// $config['meta_keywords'] = 'chan,anonymous discussion,imageboard,tinyboard';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue