- added "Redis" config/setup check to /setup page (not required but recommended)

This commit is contained in:
Exodus4D
2017-01-07 14:45:43 +01:00
parent 66274c83f1
commit 9be139f281
5 changed files with 35 additions and 16 deletions

View File

@@ -427,45 +427,52 @@ class Setup extends Controller {
'pdo' => [
'label' => 'PDO',
'required' => 'installed',
'version' => extension_loaded('pdo') ? 'installed' : 'not installed',
'version' => extension_loaded('pdo') ? 'installed' : 'missing',
'check' => extension_loaded('pdo')
],
'pdoMysql' => [
'label' => 'PDO_MYSQL',
'required' => 'installed',
'version' => extension_loaded('pdo_mysql') ? 'installed' : 'not installed',
'version' => extension_loaded('pdo_mysql') ? 'installed' : 'missing',
'check' => extension_loaded('pdo_mysql')
],
'openssl' => [
'label' => 'OpenSSL',
'required' => 'installed',
'version' => extension_loaded('openssl') ? 'installed' : 'not installed',
'version' => extension_loaded('openssl') ? 'installed' : 'missing',
'check' => extension_loaded('openssl')
],
'mcrypt' => [
'label' => 'Mcrypt',
'required' => 'installed',
'version' => (extension_loaded('mcrypt')) ? 'installed' : 'not installed',
'check' => (extension_loaded('mcrypt'))
'version' => (extension_loaded('mcrypt')) ? 'installed' : 'missing',
'check' => extension_loaded('mcrypt')
],
'xml' => [
'label' => 'XML',
'required' => 'installed',
'version' => (extension_loaded('xml')) ? 'installed' : 'not installed',
'check' => (extension_loaded('xml'))
'version' => extension_loaded('xml') ? 'installed' : 'missing',
'check' => extension_loaded('xml')
],
'gd' => [
'label' => 'GD Library (for Image plugin)',
'required' => 'installed',
'version' => (extension_loaded('gd') && function_exists('gd_info')) ? 'installed' : 'not installed',
'version' => (extension_loaded('gd') && function_exists('gd_info')) ? 'installed' : 'missing',
'check' => (extension_loaded('gd') && function_exists('gd_info'))
],
'curl' => [
'label' => 'cURL (for Web plugin)',
'required' => 'installed',
'version' => (extension_loaded('curl') && function_exists('curl_version')) ? 'installed' : 'not installed',
'version' => (extension_loaded('curl') && function_exists('curl_version')) ? 'installed' : 'missing',
'check' => (extension_loaded('curl') && function_exists('curl_version'))
],
'redis' => [
'label' => 'Redis [optional]',
'required' => $f3->get('REQUIREMENTS.PHP.REDIS'),
'version' => extension_loaded('redis') ? phpversion('redis') : 'missing',
'check' => version_compare( phpversion('redis'), $f3->get('REQUIREMENTS.PHP.REDIS'), '>='),
'tooltip' => 'Redis can replace the default file-caching mechanic. It is much faster (preferred)!'
],
'maxInputVars' => [
'label' => 'max_input_vars',
'required' => $f3->get('REQUIREMENTS.PHP.MAX_INPUT_VARS'),

View File

@@ -17,6 +17,9 @@ VERSION = 5.6
; but needs to be additionally updated on CentOS or Red Hat systems
PCRE_VERSION = 8.02
; Redis extension (optional), required if you want to use Redis as caching Engine (recommended)
REDIS = 3.0.0
; max execution time for requests
MAX_EXECUTION_TIME = 10

File diff suppressed because one or more lines are too long

View File

@@ -97,7 +97,7 @@
<td>
{{@requirement.label}}
<check if="{{ @requirement.tooltip }}">
<i class="fa fa-fw fa-question-circle" title="{{ @requirement.tooltip }}"></i>
<i class="fa fa-fw fa-question-circle pf-help-light" title="{{ @requirement.tooltip }}"></i>
</check>
</td>
<td class="text-right">
@@ -182,7 +182,7 @@
<table class="table">
<thead>
<tr>
<td class="col-md-3">TEMP <i class="fa fa-fw fa-question-circle" title="Temporary folder for cache, filesystem locks, compiled F3 templates, etc."></i></td>
<td class="col-md-3">TEMP <i class="fa fa-fw fa-question-circle pf-help-light" title="Temporary folder for cache, filesystem locks, compiled F3 templates, etc."></i></td>
<td class="text-right col-md-8">
<kbd>{{ @TEMP }}</kbd>
</td>
@@ -191,7 +191,7 @@
<tbody>
<tr>
<td>CACHE <i class="fa fa-fw fa-question-circle" title="Cache backend. F3 can handle Redis, Memcache, APC, WinCache, XCache and a filesystem-based (default) cache."></i></td>
<td>CACHE <i class="fa fa-fw fa-question-circle pf-help-light" title="Cache backend. F3 can handle Redis, Memcache, APC, WinCache, XCache and a filesystem-based (default) cache."></i></td>
<td class="text-right">
<kbd>{{ @CACHE }}</kbd>
</td>
@@ -860,7 +860,7 @@
<div class="panel-heading text-left">
<h3 class="panel-title">
Index data
<i class="fa fa-fw fa-question-circle" title="
<i class="fa fa-fw fa-question-circle pf-help-light" title="
Indexed data is required for some queries (e.g. route finder module, static wormholes,... ).
Building/Importing data may take a while (~20s). Increase 'max_execution_time' if you run into PHP timeouts."></i>
</h3>

View File

@@ -93,11 +93,20 @@ em{
color: $gray-darkest;
}
// help elements ==================================================================================
.pf-help-light{
@extend .txt-color;
@extend .txt-color-grayLight;
@extend .pf-help-default;
}
.pf-help{
cursor: pointer; // fallback
cursor: help;
@extend .txt-color;
@extend .txt-color-gray;
@extend .pf-help-default;
}
.pf-help-default{
cursor: help;
@include transition( color 0.08s ease-out );
&:hover{