Skip to content

Commit

Permalink
Merge pull request #3801 from Spuds/Cache
Browse files Browse the repository at this point in the history
Cache
  • Loading branch information
Spuds committed Jun 4, 2024
2 parents 8f3e464 + adfb03c commit 8433eb1
Show file tree
Hide file tree
Showing 19 changed files with 1,000 additions and 193 deletions.
69 changes: 39 additions & 30 deletions Settings.sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,122 +5,119 @@
* The maintenance "mode"
* Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
* 0 is default and disables maintenance mode.
* @var int 0, 1, 2
* @global int $maintenance
*/
$maintenance = 0;

/**
* Title for the Maintenance Mode message.
* @var string
* @global string $mtitle
*/
$mtitle = 'Maintenance Mode';

/**
* Description of why the forum is in maintenance mode.
* @var string
* @global string $mmessage
*/
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';

########## Forum Info ##########
/**
* The name of your forum.
* @var string
* @global string $mbname
*/
$mbname = 'My Community';

/**
* The default language file set for the forum.
* @var string
* @global string $language
*/
$language = 'English';

/**
* URL to your forum's folder. (without the trailing /!)
* @var string
* @global string $boardurl
*/
$boardurl = 'http://127.0.0.1/elkarte';

/**
* Email address to send emails from. (like noreply@yourdomain.com.)
* @var string
* @global string $webmaster_email
*/
$webmaster_email = 'noreply@myserver.com';

/**
* Name of the cookie to set for authentication.
* @var string
* @global string $cookiename
*/
$cookiename = 'ElkArteCookie11';

########## Database Info ##########
/**
* The database type
* Default options: mysql, sqlite, postgresql
* @var string
* @global string $db_type
*/
$db_type = 'mysql';

/**
* The server to connect to (or a Unix socket)
* @var string
* @global string $db_server
*/
$db_server = 'localhost';

/**
* The port for the database server
* @var string
* @global string $db_port
*/
$db_port = '';

/**
* The database name
* @var string
* @global string $db_name
*/
$db_name = 'elkarte';

/**
* Database username
* @var string
* @global string $db_user
*/
$db_user = 'root';

/**
* Database password
* @var string
* @global string $db_passwd
*/
$db_passwd = '';

/**
* Database user for when connecting with SSI
* @var string
* @global string $ssi_db_user
*/
$ssi_db_user = '';

/**
* Database password for when connecting with SSI
* @var string
* @global string $ssi_db_passwd
*/
$ssi_db_passwd = '';

/**
* A prefix to put in front of your table names.
* This helps to prevent conflicts
* @var string
* @global string $db_prefix
*/
$db_prefix = 'elkarte_';

/**
* Use a persistent database connection
* @var int|bool
* @global int|bool $db_persist
*/
$db_persist = 0;

/**
*
* @var int|bool
* @global int|bool $db_error_send
*/
$db_error_send = 0;

Expand All @@ -129,51 +126,63 @@
* Select a cache system. You want to leave this up to the cache area of the admin panel for
* proper detection of apc, eaccelerator, memcache, mmcache, output_cache or filesystem-based
* (you can add more with a mod).
* @var string
* @global string $cache_accelerator
*/
$cache_accelerator = '';

/**
* The level at which you would like to cache. Between 0 (off) through 3 (cache a lot).
* @var int
* @global int $cache_enable
*/
$cache_enable = 0;

/**
* This is only used for memcache / memcached. Should be a string of 'server:port,server:port'
* @var array
* This is only used for memcache / memcached / redis. Should be a string of 'server:port,server:port'
* @global string $cache_servers
*/
$cache_memcached = '';
$cache_servers = '';

/**
* This is only for the 'filebased' cache system. It is the path to the cache directory.
* It is also recommended that you place this in /tmp/ if you are going to use this.
* @var string
* @global string $cachedir
*/
$cachedir = __DIR__ . '/cache';

/**
* Cache accelerator userid / dbname, required by some engines
* @global string $cache_uid
*/
$cache_uid = '';

/**
* Cache accelerator password for connecting, required by somme engines
* @global string $cache_password
*/
$cache_password = '';

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
/**
* The absolute path to the forum's folder. (not just '.'!)
* @var string
* @global string $boarddir
*/
$boarddir = __DIR__;

/**
* Path to the sources directory.
* @var string
* @global string $sourcedir
*/
$sourcedir = __DIR__ . '/sources';

/**
* Path to the external resources directory.
* @var string
* Path to the external resources' directory.
* @global string $extdir
*/
$extdir = __DIR__ . '/sources/ext';

/**
* Path to the languages directory.
* @var string
* @global string
*/
$languagedir = __DIR__ . '/sources/ElkArte/Languages';
Loading

0 comments on commit 8433eb1

Please sign in to comment.