From 82c5cbb9296aab4f845e1dc9005d3cf3b4cfc40b Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 21 Mar 2022 12:07:14 +0100 Subject: [PATCH] PJ scheduler only enterprise --- pandora_console/godmode/setup/performance.php | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/pandora_console/godmode/setup/performance.php b/pandora_console/godmode/setup/performance.php index a80aed9b5b..ad74c490c2 100644 --- a/pandora_console/godmode/setup/performance.php +++ b/pandora_console/godmode/setup/performance.php @@ -660,20 +660,23 @@ $tip = ui_print_help_tip( ), true ); -$table_other->data[$i][0] = __('PhantomJS cache cleanup ').$tip; -$table_other->data[$i++][1] = html_print_input( - [ - 'type' => 'select', - 'name' => 'phantomjs_cache_interval', - 'return' => true, - 'fields' => [ - PHANTOM_CACHE_CLEANUP_ONCE => __('No scheduled'), - PHANTOM_CACHE_CLEANUP_WEEKLY => __('Each week'), - PHANTOM_CACHE_CLEANUP_DAILY => __('Each day'), - ], - 'selected' => ($config['phantomjs_cache_interval'] ?? PHANTOM_CACHE_CLEANUP_ONCE), - ] -); + +if (enterprise_installed() === true) { + $table_other->data[$i][0] = __('PhantomJS cache cleanup ').$tip; + $table_other->data[$i++][1] = html_print_input( + [ + 'type' => 'select', + 'name' => 'phantomjs_cache_interval', + 'return' => true, + 'fields' => [ + PHANTOM_CACHE_CLEANUP_ONCE => __('No scheduled'), + PHANTOM_CACHE_CLEANUP_WEEKLY => __('Each week'), + PHANTOM_CACHE_CLEANUP_DAILY => __('Each day'), + ], + 'selected' => ($config['phantomjs_cache_interval'] ?? PHANTOM_CACHE_CLEANUP_ONCE), + ] + ); +} echo '
';