HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/wp-content/plugins/w3-total-cache/Extension_NewRelic_AdminNotes.php
<?php
namespace W3TC;

class Extension_NewRelic_AdminNotes {
	/**
	 *
	 *
	 * @param Config  $config
	 * @return string
	 */
	function notifications( $config ) {
		$config_state = Dispatcher::config_state();
		if ( !$config_state->get_boolean( 'newrelic.hide_note_pageload_slow' ) ) {
			$pl = get_option( 'w3tc_nr_frontend_response_time' );

			if ( $pl !== false && $pl>0.3 ) {
				$nr_recommends = array();
				if ( !$config->get_boolean( 'pgcache.enabled' ) )
					$nr_recommends[] = __( 'Page Cache', 'w3-total-cache' );
				if ( !$config->get_boolean( 'minify.enabled' ) )
					$nr_recommends[] = __( 'Minify', 'w3-total-cache' );
				if ( !$config->get_boolean( 'cdn.enabled' ) )
					$nr_recommends[] = __( 'CDN', 'w3-total-cache' );
				if ( !$config->get_boolean( 'browsercache.enabled' ) )
					$nr_recommends[] = __( 'Browser Cache and use compression', 'w3-total-cache' );

				if ( $nr_recommends ) {
					$message =  sprintf(
						__( 'Application monitoring has detected that your page load time is higher than 300ms. It is recommended that you enable the following features: %s %s',
							'w3-total-cache' ),
						implode( ', ', $nr_recommends ),
						Util_Ui::button_link( 'Hide this message',
							Util_Ui::url( array(
									'w3tc_default_config_state' => 'y',
									'key' => 'newrelic.hide_note_pageload_slow',
									'value' => 'true' ) ) ) );
					return array(
						'newrelic_recommends' => $message
					);
				}
			}
		}

		return array();
	}
}