dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some @since tags to ParserOutput::SUPPORTS_ constants
[lhc/web/wiklou.git]
/
docs
/
memcached.txt
diff --git
a/docs/memcached.txt
b/docs/memcached.txt
index
1e68fb7
..
ba325fe
100644
(file)
--- a/
docs/memcached.txt
+++ b/
docs/memcached.txt
@@
-61,7
+61,7
@@
on port 11211, using up to 64MB of memory)
In your LocalSettings.php file, set:
$wgMainCacheType = CACHE_MEMCACHED;
In your LocalSettings.php file, set:
$wgMainCacheType = CACHE_MEMCACHED;
- $wgMemCachedServers =
array( "127.0.0.1:11211" )
;
+ $wgMemCachedServers =
[ "127.0.0.1:11211" ]
;
The wiki should then use memcached to cache various data. To use
multiple servers (physically separate boxes or multiple caches
The wiki should then use memcached to cache various data. To use
multiple servers (physically separate boxes or multiple caches
@@
-70,10
+70,10
@@
to the array. To increase the weight of a server (say, because
it has twice the memory of the others and you want to spread
usage evenly), make its entry a subarray:
it has twice the memory of the others and you want to spread
usage evenly), make its entry a subarray:
- $wgMemCachedServers =
array(
+ $wgMemCachedServers =
[
"127.0.0.1:11211", # one gig on this box
"127.0.0.1:11211", # one gig on this box
-
array("192.168.0.1:11211", 2 )
# two gigs on the other box
-
)
;
+
[ "192.168.0.1:11211", 2 ]
# two gigs on the other box
+
]
;
== PHP client for memcached ==
== PHP client for memcached ==