| Server IP : 104.21.1.144 / Your IP : 104.23.243.196 Web Server : nginx/1.26.1 System : Linux HE9229 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/11ph_ph_com/wp-content/plugins/litespeed-cache/tpl/toolbox/ |
Upload File : |
<?php /** * LiteSpeed Cache Debug Settings Interface * * Renders the debug settings interface for LiteSpeed Cache, allowing users to configure debugging options and view the site with specific settings bypassed. * * @package LiteSpeed * @since 1.0.0 */ namespace LiteSpeed; defined( 'WPINC' ) || exit; $this->form_action( $this->_is_network_admin ? Router::ACTION_SAVE_SETTINGS_NETWORK : false ); ?> <h3 class="litespeed-title-short"> <?php esc_html_e( 'Debug Helpers', 'litespeed-cache' ); ?> </h3> <a href="<?php echo esc_url( home_url( '/' ) . '?' . Router::ACTION . '=before_optm' ); ?>" class="button button-success" target="_blank"> <?php esc_html_e( 'View Site Before Optimization', 'litespeed-cache' ); ?> </a> <a href="<?php echo esc_url( home_url( '/' ) . '?' . Router::ACTION . '=' . Core::ACTION_QS_NOCACHE ); ?>" class="button button-success" target="_blank"> <?php esc_html_e( 'View Site Before Cache', 'litespeed-cache' ); ?> </a> <h3 class="litespeed-title-short"> <?php esc_html_e( 'Debug Settings', 'litespeed-cache' ); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#debug-settings-tab' ); ?> </h3> <table class="wp-list-table striped litespeed-table"> <tbody> <tr> <th> <?php $option_id = Base::O_DEBUG_DISABLE_ALL; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_switch( $option_id ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'This will disable LSCache and all optimization features for debug purpose.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_switch( $option_id, array( esc_html__( 'OFF', 'litespeed-cache' ), esc_html__( 'ON', 'litespeed-cache' ), esc_html__( 'Admin IP Only', 'litespeed-cache' ) ) ); ?> <div class="litespeed-desc"> <?php printf( esc_html__( 'Outputs to a series of files in the %s directory.', 'litespeed-cache' ), '<code>wp-content/litespeed/debug</code>' ); ?> <?php esc_html_e( 'To prevent filling up the disk, this setting should be OFF when everything is working.', 'litespeed-cache' ); ?> <?php esc_html_e( 'The Admin IP option will only output log messages on requests from admin IPs listed below.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG_IPS; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_textarea( $option_id, 50 ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'Allows listed IPs (one per line) to perform certain actions from their browsers.', 'litespeed-cache' ); ?> <?php esc_html_e( 'Your IP', 'litespeed-cache' ); ?>: <code><?php echo esc_html( Router::get_ip() ); ?></code> <?php $this->_validate_ip( $option_id ); ?> <br /> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/admin/#admin-ip-commands', esc_html__( 'More information about the available commands can be found here.', 'litespeed-cache' ) ); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG_LEVEL; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_switch( $option_id, array( esc_html__( 'Basic', 'litespeed-cache' ), esc_html__( 'Advanced', 'litespeed-cache' ) ) ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'Advanced level will log more details.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG_FILESIZE; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_input( $option_id, 'litespeed-input-short' ); ?> <?php esc_html_e( 'MB', 'litespeed-cache' ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'Specify the maximum size of the log file.', 'litespeed-cache' ); ?> <?php $this->recommended( $option_id ); ?> <?php $this->_validate_ttl( $option_id, 3, 3000 ); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG_COLLAPSE_QS; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_switch( $option_id ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'Shorten query strings in the debug log to improve readability.', 'litespeed-cache' ); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG_INC; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_textarea( $option_id ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'Only log listed pages.', 'litespeed-cache' ); ?> <?php $this->_uri_usage_example(); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG_EXC; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_textarea( $option_id ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'Prevent any debug log of listed pages.', 'litespeed-cache' ); ?> <?php $this->_uri_usage_example(); ?> </div> </td> </tr> <tr> <th> <?php $option_id = Base::O_DEBUG_EXC_STRINGS; ?> <?php $this->title( $option_id ); ?> </th> <td> <?php $this->build_textarea( $option_id ); ?> <div class="litespeed-desc"> <?php esc_html_e( 'Prevent writing log entries that include listed strings.', 'litespeed-cache' ); ?> <?php Doc::one_per_line(); ?> </div> </td> </tr> </tbody> </table> <?php $this->form_end(); ?>