Skip to content

Commit

Permalink
MDL-25290 cache: Fixed up memcache server settings and a couple of mi…
Browse files Browse the repository at this point in the history
…nor things
  • Loading branch information
Sam Hemelryk committed Oct 7, 2012
1 parent 170f821 commit 42f5d16
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cache/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function definition_summaries(array $definitions, array $actions) {
'mappings',
'actions'
);
$table->data = array('none', 'cache');
$table->data = array();

$none = new lang_string('none', 'cache');
foreach ($definitions as $id => $definition) {
Expand Down
3 changes: 3 additions & 0 deletions cache/stores/memcache/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public function __construct($name, array $configuration = array()) {
// Nothing configured.
return;
}
if (!is_array($configuration['servers'])) {
$configuration['servers'] = array($configuration['servers']);
}
foreach ($configuration['servers'] as $server) {
if (!is_array($server)) {
$server = explode(':', $server, 3);
Expand Down
3 changes: 3 additions & 0 deletions cache/stores/memcached/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ public function __construct($name, array $configuration = array()) {
// Nothing configured.
return;
}
if (!is_array($configuration['servers'])) {
$configuration['servers'] = array($configuration['servers']);
}

$compression = array_key_exists('compression', $configuration) ? (bool)$configuration['compression'] : true;
if (array_key_exists('serialiser', $configuration)) {
Expand Down
1 change: 1 addition & 0 deletions theme/base/style/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@

#core-cache-plugin-summaries table,
#core-cache-store-summaries table {width:100%;}
#core-cache-lock-summary table,
#core-cache-definition-summaries table,
#core-cache-mode-mappings table {margin:0 auto;}
#core-cache-store-summaries .default-store td {color:#333;font-style: italic;}
Expand Down

0 comments on commit 42f5d16

Please sign in to comment.