The value is now displayed as a server variable on the index page for manual review.
Closes #3535
{include file='formError'}
-{if $showInnoDBWarning}
- <p class="warning">{lang}wcf.acp.index.innoDBWarning{/lang}</p>
-{/if}
-
{if !$exporterName}
{if !$availableExporters|count}
<p class="info">{lang}wcf.acp.dataImport.selectExporter.noExporters{/lang}</p>
</dl>
{/if}
+ {if $server[innodbFlushLogAtTrxCommit] !== false}
+ <dl>
+ <dt>innodb_flush_log_at_trx_commit</dt>
+ <dd>{$server[innodbFlushLogAtTrxCommit]}</dd>
+ </dl>
+ {/if}
+
{event name='serverFields'}
</section>
{/hascontent}
</header>
-{if $showInnoDBWarning}
- <p class="warning">{lang}wcf.acp.index.innoDBWarning{/lang}</p>
-{/if}
-
{event name='afterContentHeader'}
<section class="section">
*/
public $fileSystemPath = '';
- /**
- * display a warning if InnoDB uses a slow configuration
- * @var boolean
- */
- public $showInnoDBWarning = false;
-
/**
* display notice for existing import mappings
* @var boolean
}
}
}
-
- $sql = "SHOW VARIABLES LIKE 'innodb_flush_log_at_trx_commit'";
- $statement = WCF::getDB()->prepareStatement($sql);
- $statement->execute();
- $row = $statement->fetchArray();
- if ($row && $row['Value'] == 1) {
- $this->showInnoDBWarning = true;
- }
}
/**
'dbPrefix' => $this->dbPrefix,
'fileSystemPath' => $this->fileSystemPath,
'userMergeMode' => $this->userMergeMode,
- 'showInnoDBWarning' => $this->showInnoDBWarning,
'showMappingNotice' => $this->showMappingNotice,
- 'additionalData' => $this->additionalData
+ 'additionalData' => $this->additionalData,
]);
}
}
public function readData() {
parent::readData();
+ $sql = "SHOW VARIABLES LIKE 'innodb_flush_log_at_trx_commit'";
+ $statement = WCF::getDB()->prepareStatement($sql);
+ $statement->execute();
+ $row = $statement->fetchArray();
+ $innodbFlushLogAtTrxCommit = false;
+ if ($row !== false) {
+ $innodbFlushLogAtTrxCommit = $row['Value'];
+ }
+
$this->server = [
'os' => PHP_OS,
'webserver' => isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '',
'memoryLimit' => @ini_get('memory_limit'),
'upload_max_filesize' => @ini_get('upload_max_filesize'),
'postMaxSize' => @ini_get('post_max_size'),
- 'sslSupport' => RemoteFile::supportsSSL()
+ 'sslSupport' => RemoteFile::supportsSSL(),
+ 'innodbFlushLogAtTrxCommit' => $innodbFlushLogAtTrxCommit,
];
// get load
*/
public $objectTypes = [];
- /**
- * display a warning if InnoDB uses a slow configuration
- * @var boolean
- */
- public $showInnoDBWarning = false;
-
/**
* @inheritDoc
*/
return 0;
});
- $sql = "SHOW VARIABLES LIKE 'innodb_flush_log_at_trx_commit'";
- $statement = WCF::getDB()->prepareStatement($sql);
- $statement->execute();
- $row = $statement->fetchArray();
- if ($row && $row['Value'] == 1) {
- $this->showInnoDBWarning = true;
- }
-
// We're disallowing rebuilding any other data unless the
// database encoding has been converted to utf8mb4. The
// user_storage table is used as a reference, as it is the
WCF::getTPL()->assign([
'convertEncoding' => $this->convertEncoding,
'objectTypes' => $this->objectTypes,
- 'showInnoDBWarning' => $this->showInnoDBWarning
]);
}
}
<item name="wcf.acp.index.credits.productManager"><![CDATA[Projektleitung]]></item>
<item name="wcf.acp.index.credits.trademarks"><![CDATA[„WoltLab®“ und „Burning Board®“ sind eingetragene Gemeinschaftsmarken beim europäischen Harmonisierungsamt für den Binnenmarkt (OHIM) in Alicante, Spanien.]]></item>
<item name="wcf.acp.index.credits.contributor.more"><![CDATA[Weitere]]></item>
- <item name="wcf.acp.index.innoDBWarning"><![CDATA[Die MySQL-Einstellung „innodb_flush_log_at_trx_commit“ steht auf dem Wert „1“ und verursacht dadurch eine starke Verlangsamung bestimmter Datenbankabfragen. Es wird empfohlen diesen Wert auf „2“ zu setzen.]]></item>
<item name="wcf.acp.index.inRescueMode"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du rufst{else}Sie rufen{/if} diese Installation über eine abweichende Domain auf, etwa aufgrund eines Umzuges. Bitte {if LANGUAGE_USE_INFORMAL_VARIANT}korrigiere{else}korrigieren Sie{/if} die Einstellungen unter <a href="{link controller='ApplicationManagement'}{/link}">Apps verwalten</a>.]]></item>
<item name="wcf.acp.index.tmpBroken"><![CDATA[Für den ordnungsgemäßen Betrieb muss das Verzeichnis „{WCF_DIR|concat:'tmp/'}“ existieren und beschreibbar sein. Bitte {if LANGUAGE_USE_INFORMAL_VARIANT}überprüfe{else}überprüfen Sie{/if} auch die Zugriffsrechte auf den Ordner „{'WCF_DIR'|constant}“.]]></item>
<item name="wcf.acp.index.news"><![CDATA[Nachrichten]]></item>
<item name="wcf.acp.index.credits.productManager"><![CDATA[Product Manager]]></item>
<item name="wcf.acp.index.credits.trademarks"><![CDATA[“WoltLab®” and “Burning Board®” are registered Community Trade Marks at The Office of Harmonization for the Internal Market (OHIM) in Alicante, Spain.]]></item>
<item name="wcf.acp.index.credits.contributor.more"><![CDATA[More]]></item>
- <item name="wcf.acp.index.innoDBWarning"><![CDATA[The MySQL configuration option “innodb_flush_log_at_trx_commit” is set to “1”, slowing down certain database queries. It is highly recommended to set its value to “2”.]]></item>
<item name="wcf.acp.index.inRescueMode"><![CDATA[You are accessing this installation from an unknown domain, possibly caused by moving to a new host. Please update the settings on <a href="{link controller='ApplicationManagement'}{/link}">Manage Apps</a>.]]></item>
<item name="wcf.acp.index.tmpBroken"><![CDATA[For proper operation the folder “{WCF_DIR|concat:'tmp/'}” must exist and it must be writable. Please also check the permissions of the “{'WCF_DIR'|constant}” folder.]]></item>
<item name="wcf.acp.index.news"><![CDATA[News]]></item>