aboutsummaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-02 17:11:46 +0200
committerRobin Appelman <icewind@owncloud.com>2015-09-03 11:59:47 +0200
commit4361ff92e2c5c2ccab16ac8b1ee63ddc9e0f1d37 (patch)
tree36276bee01bfafb3ef21b1d41326c73c363db80d /settings/templates
parent8684420d0a503f5c913343eca838b3a7dc903506 (diff)
downloadnextcloud-server-4361ff92e2c5c2ccab16ac8b1ee63ddc9e0f1d37.tar.gz
nextcloud-server-4361ff92e2c5c2ccab16ac8b1ee63ddc9e0f1d37.zip
Replace server status message about transitional file locking with setup warnings
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/admin.php30
1 files changed, 16 insertions, 14 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 9c161281846..5d4ec22223e 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -124,6 +124,15 @@ if (!$_['has_fileinfo']) {
<?php
}
+// locking configured optimally?
+if ($_['fileLockingType'] === 'none') {
+ ?>
+ <li>
+ <?php p($l->t('Transitional file locking is disabled, this might lead to issues with race conditions, enable \'filelocking.enabled\' to improve handling of race conditions.')); ?>
+ </li>
+ <?php
+}
+
// is locale working ?
if (!$_['isLocaleWorking']) {
?>
@@ -172,7 +181,13 @@ if ($_['cronErrors']) {
<div class="loading"></div>
<ul class="errors hidden"></ul>
<ul class="warnings hidden"></ul>
- <ul class="info hidden"></ul>
+ <ul class="info hidden">
+ <?php if ($_['fileLockingType'] === 'db'):?>
+ <li>
+ <?php p($l->t('Transitional file locking is using the database as locking backend, for best performance it\'s advised to configure a memcache for locking. Check the admin documentation for more information about locking and memcaches')); ?>
+ </li>
+ <?php endif; ?>
+ </ul>
<p class="hint hidden">
<?php print_unescaped($l->t('Please double check the <a target="_blank" href="%s">installation guides ↗</a>, and check for any errors or warnings in the <a href="#log-section">log</a>.', link_to_docs('admin-install'))); ?>
</p>
@@ -519,19 +534,6 @@ if ($_['cronErrors']) {
<?php endif; ?>
</div>
-<div class="section" id="server-status">
- <h2><?php p($l->t('Server status'));?></h2>
- <ul>
- <li>
- <?php if ($_['fileLockingEnabled']) {
- p($l->t('Transactional File Locking is enabled.'));
- } else {
- p($l->t('Transactional File Locking is disabled.'));
- } ?>
- </li>
- </ul>
-</div>
-
<div class="section" id="admin-tips">
<h2><?php p($l->t('Tips & tricks'));?></h2>
<ul>