![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/matelopsrp.com/wp-content/plugins/litespeed-cache/tpl/toolbox/ |
<?php namespace LiteSpeed; defined( 'WPINC' ) || exit; ?> <h3 class="litespeed-title"> <?php echo __('Debug Log', 'litespeed-cache'); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/toolbox/#log-view-tab' ); ?> <a href="<?php echo Utility::build_url( Router::ACTION_DEBUG2, Debug2::TYPE_CLEAR_LOG ); ?>" class="button button-primary" litespeed-accesskey='D'> <?php echo __( 'Clear Log', 'litespeed-cache' ); ?> </a> </h3> <?php $file = LSCWP_CONTENT_DIR . '/debug.log'; $lines = File::count_lines( $file ); $start = $lines > 1000 ? $lines - 1000 : 0; $logs = File::read( $file, $start ); $logs = $logs ? implode( "\n", $logs ) : ''; echo nl2br( htmlspecialchars( $logs ) ); ?> <a href="<?php echo Utility::build_url( Router::ACTION_DEBUG2, Debug2::TYPE_CLEAR_LOG ); ?>" class="button button-primary"> <?php echo __( 'Clear Log', 'litespeed-cache' ); ?> </a>