commit d48eafd2aeb5e80ca4027401bfc7f387399bb684
parent c443eefabcb24579f7d080e5440df5ad00c826e7
Author: Felicitus <felicitus@felicitus.org>
Date: Sat, 28 Nov 2015 15:05:18 +0100
Add warnings for apc and max_execution_time, fixes #496
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/app/PartKeeprRequirements.php b/app/PartKeeprRequirements.php
@@ -30,10 +30,17 @@ class PartKeeprRequirements extends SymfonyRequirements
$this->checkWritable(realpath(dirname(__FILE__)."/../app/"));
$this->checkWritable(realpath(dirname(__FILE__)."/../web/"));
- $this->addRequirement(
+ $this->addRecommendation(
function_exists("apc_fetch"),
sprintf('PHP APCu cache not found'),
- sprintf('Install the PHP APCu cache')
+ sprintf('For best performance install the PHP APCu cache')
+ );
+
+ $this->addPhpIniRecommendation("max_execution_time",
+ ini_get("max_execution_time") > 30,
+ true,
+ sprintf('Maximum Execution Time might be too low'),
+ sprintf('Your maximum execution time is set to %d seconds, which might be too low for low-end systems. If you encounter problems, please increase the value.', ini_get("max_execution_time"))
);
$this->addRequirement(