cache rss + redis require 2.0

This commit is contained in:
xiaomlove
2022-07-18 15:13:03 +08:00
parent ffd25a1dae
commit 1759f4abfc
10 changed files with 67 additions and 24 deletions

View File

@@ -157,6 +157,7 @@ if ($currentStep == 4) {
$tableRows = $settingTableRows['table_rows'];
$pass = $settingTableRows['pass'];
$mysqlInfo = $update->getMysqlVersionInfo();
$redisInfo = $update->getREdisVersionInfo();
while ($isPost) {
set_time_limit(300);
try {
@@ -175,7 +176,11 @@ if ($currentStep == 4) {
}
}
if (!empty($error) || (isset($mysqlInfo) && !$mysqlInfo['match'])) {
if (
!empty($error)
|| (isset($mysqlInfo) && !$mysqlInfo['match'])
|| (isset($redisInfo) && !$redisInfo['match'])
) {
$pass = false;
}
?>
@@ -224,6 +229,9 @@ if (!empty($error) || (isset($mysqlInfo) && !$mysqlInfo['match'])) {
if (!$mysqlInfo['match']) {
echo sprintf('<div class="text-red-700 pt-10">MySQL version: %s is too low, please use the newest version of 5.7 or above.</div>', $mysqlInfo['version']);
}
if (!$redisInfo['match']) {
echo sprintf('<div class="text-red-700 pt-10">Redis version: %s is too low, please use 2.0.0 or above.</div>', $redisInfo['version']);
}
} elseif ($currentStep > $maxStep) {
echo '<div class="text-green-900 text-6xl p-10">Congratulations, everything is ready!</div>';
echo '<div class="mb-6">For questions, consult the upgrade log at: <code>' . $update->getLogFile() . '</code></div>';