Commit Graph

15 Commits

Author SHA1 Message Date
Michal Čihař
94dccc6a00 Remove MySQL version caching
In my testing the session/cache access is slower than fetching single
value from MySQL and calculating the values.

Also the caching would need some logic for invalidation as the server
can be upgraded or configuration changed.

Fixes #11924

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-08 10:59:38 +01:00
Michal Čihař
277fdc81c7 Merge branch 'QA_4_5' 2016-01-22 09:43:54 +01:00
Michal Čihař
3bd0971db7 Validate version information before further processing it
Do basic sanity checking before we return the value further. This can
especially happen in case the curl/allow_url_fopen is missing.

Fixes #11874
2016-01-22 09:42:54 +01:00
Michal Čihař
0df7eeecc1 Merge branch 'QA_4_5' 2016-01-19 17:39:12 +01:00
Michal Čihař
91bfa27ee2 Do not cache data if releases attribute is missing
Issue #11874

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-19 17:38:22 +01:00
Madhura Jayaratne
54e403a624 Merge branch 'QA_4_5' 2016-01-15 10:49:39 +11:00
Madhura Jayaratne
4e05d3981a Fix #11854 Undefined property: stdClass::$releases at version check when disabled in config
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-01-15 10:45:31 +11:00
Hugues Peccatte
f9d582bd09 Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-11-08 15:58:48 +01:00
Marc Delisle
110602c3a4 Remove closing tag
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-10-18 08:29:00 -04:00
Hugues Peccatte
cef71b8136 Set VersionInformation in a namespace.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-26 21:50:23 +02:00
Hugues Peccatte
71b62bcef9 Merge remote-tracking branch 'origin/master' into useNamespaces_master 2015-09-26 13:50:49 +02:00
Marc Delisle
4412a3aab6 Fix typos
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-09-22 08:12:37 -04:00
Madhura Jayaratne
2da36e93b2 Fix #11464 phpMyAdmin suggests upgrading to newer version not usable on that system
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-09-22 21:35:05 +10:00
Madhura Jayaratne
f70add88d6 Return the MySQL version
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-09-22 17:27:55 +10:00
Madhura Jayaratne
c3fefc2e4a Fix #11464 phpMyAdmin suggests upgrading to newer version not usable on that system
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-09-14 20:14:51 +10:00