Banner to run opcache.preload=/var/www/tts_project/op_cache.php not from cli.

main
Robert 3 years ago
parent a27f96a986
commit 3a65fa4ac5
  1. 1
      src/configs/mockup/loadall.php
  2. 5
      src/mockup/cli_controllers/app/home_ctrl.php

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* This file is Auto-Generated, Do NOT Modify!!! Please Delete this file to update configuration!
*/

@ -12,7 +12,9 @@ class home_ctrl {
public function op_cache() {
if (!opcache_get_status()) {
echo "Op-Cache NOT Enabled!!!";
echo "Op-Cache NOT Enabled!!! Must be run only by PHP_FPM not CLI Directly..." . PHP_EOL;
echo "For PHP-FPM add to php.ini: opcache.enable=1" . PHP_EOL;
echo "And: opcache.preload=/var/www/tts_project/op_cache.php" . PHP_EOL;
exit(1);
}
@ -42,6 +44,7 @@ class home_ctrl {
$all_files[] = $dir . "router.php";
$all_files[] = $dir . "security.php";
$all_files[] = $dir . "tag_matches.php";
$all_files[] = $dir . "validator.php";
$all_files[] = $dir . "view.php";
$all_files[] = $dir . "database/help_load.php";
$all_files[] = $dir . "database/help_save.php";

Loading…
Cancel
Save