D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
everqlsh
/
www
/
wp-admin
/
user
/
577040
/
Filename :
cache.tar
back
Copy
settings_inc.exclude_cookies.tpl.php 0000644 00000001031 15162413365 0013711 0 ustar 00 <?php namespace LiteSpeed ; defined( 'WPINC' ) || exit ; ?> <tr> <th> <?php $id = Base::O_CACHE_EXC_COOKIES ; ?> <?php $this->title( $id ) ; ?> </th> <td> <?php $this->build_textarea( $id ) ; ?> <div class="litespeed-desc"> <?php echo sprintf( __( 'To prevent %s from being cached, enter them here.', 'litespeed-cache' ), __( 'cookies', 'litespeed-cache') ) ; ?> <?php Doc::one_per_line() ; ?> <?php $this->_validate_syntax( $id ) ; ?> <br /><?php Doc::notice_htaccess() ; ?> </div> </td> </tr> entry.tpl.php 0000644 00000004172 15162413366 0007227 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; $menu_list = array( 'cache' => __( 'Cache', 'litespeed-cache' ), 'ttl' => __( 'TTL', 'litespeed-cache' ), 'purge' => __( 'Purge', 'litespeed-cache' ), 'excludes' => __( 'Excludes', 'litespeed-cache' ), 'esi' => __( 'ESI', 'litespeed-cache' ), ); if ( ! $this->_is_multisite ) { $menu_list[ 'object' ] = __( 'Object', 'litespeed-cache' ); $menu_list[ 'browser' ] = __( 'Browser', 'litespeed-cache' ); } $menu_list[ 'advanced' ] = __( 'Advanced', 'litespeed-cache' ); /** * Generate rules for setting usage * @since 1.6.2 */ global $wp_roles; if ( !isset( $wp_roles ) ) { $wp_roles = new \WP_Roles(); } $roles = array(); foreach ( $wp_roles->roles as $k => $v ) { $roles[ $k ] = $v[ 'name' ]; } ksort( $roles ); ?> <div class="wrap"> <h1 class="litespeed-h1"> <?php echo __('LiteSpeed Cache Settings', 'litespeed-cache'); ?> </h1> <span class="litespeed-desc"> v<?php echo Core::VER; ?> </span> <hr class="wp-header-end"> </div> <div class="litespeed-wrap"> <h2 class="litespeed-header nav-tab-wrapper"> <?php $i = 1; $accesskey_set = array(); foreach ( $menu_list as $tab => $val ) { $accesskey = ''; if ( $i <= 9 ) { $accesskey = "litespeed-accesskey='$i'"; } else { $tmp = strtoupper( substr( $tab, 0, 1 ) ); if ( ! in_array( $tmp, $accesskey_set ) ) { $accesskey_set[] = $tmp; $accesskey = "litespeed-accesskey='$tmp'"; } } echo "<a class='litespeed-tab nav-tab' href='#$tab' data-litespeed-tab='$tab' $accesskey>$val</a>"; $i ++; } do_action( 'litespeed_settings_tab', 'cache' ); ?> </h2> <div class="litespeed-body"> <?php $this->cache_disabled_warning(); ?> <?php $this->form_action(); require LSCWP_DIR . "tpl/inc/check_if_network_disable_all.php"; require LSCWP_DIR . "tpl/cache/more_settings_tip.tpl.php"; // include all tpl for faster UE foreach ( $menu_list as $tab => $val ) { echo "<div data-litespeed-layout='$tab'>"; require LSCWP_DIR . "tpl/cache/settings-$tab.tpl.php"; echo "</div>"; } do_action( 'litespeed_settings_content', 'cache' ); $this->form_end(); ?> </div> </div> settings_inc.cache_mobile.tpl.php 0000644 00000004567 15162413367 0013161 0 ustar 00 <?php namespace LiteSpeed; defined( 'WPINC' ) || exit; ?> <!-- build_setting_mobile_view start --> <tr> <th> <?php $id = Base::O_CACHE_MOBILE; ?> <?php $this->title( $id ); ?> </th> <td> <?php $this->build_switch( $id ); ?> <div class="litespeed-desc"> <?php echo __( 'Serve a separate cache copy for mobile visitors.', 'litespeed-cache' ); ?> <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/cache/#cache-mobile', __( 'Learn more about when this is needed', 'litespeed-cache' ) ); ?> <br /><?php Doc::notice_htaccess(); ?> <br /><?php Doc::crawler_affected(); ?> </div> </td> </tr> <tr> <th class="litespeed-padding-left"> <?php $id = Base::O_CACHE_MOBILE_RULES; ?> <?php $this->title( $id ); ?> </th> <td> <?php // if set, use value as input value if ( $this->conf( Base::O_CACHE_MOBILE ) ) { // if enabled, check the setting in file if ( defined( 'LITESPEED_ON' ) ) { try { $mobile_agents = Htaccess::cls()->current_mobile_agents(); if ( $mobile_agents !== Utility::arr2regex( $this->conf( $id ), true ) ) { echo '<div class="litespeed-callout notice notice-error inline"><p>' . __( 'Htaccess did not match configuration option.', 'litespeed-cache' ) . ' ' . sprintf( __( 'Htaccess rule is: %s', 'litespeed-cache' ), '<code>' . $mobile_agents . '</code>' ) . '</p></div>'; } } catch( \Exception $e ) { echo '<div class="litespeed-callout notice notice-error inline"><p>' . $e->getMessage() . '</p></div>'; } } } ?> <div class="litespeed-textarea-recommended"> <div> <?php $this->build_textarea( $id, 40 ); ?> </div> <div> <?php $this->recommended( $id ); ?> </div> </div> <div class="litespeed-desc"> <?php Doc::one_per_line(); ?> <?php $this->_validate_syntax( $id ); ?> <?php if ( $this->conf( Base::O_CACHE_MOBILE ) && ! $this->conf( $id ) ) : ?> <font class="litespeed-warning"> ❌ <?php echo sprintf( __( 'If %1$s is %2$s, then %3$s must be populated!', 'litespeed-cache' ), '<code>' . __('Cache Mobile', 'litespeed-cache') . '</code>', '<code>' . __('ON', 'litespeed-cache') . '</code>', '<code>' . __('List of Mobile User Agents', 'litespeed-cache') . '</code>' ); ?> </font> <?php endif; ?> </div> </td> </tr> <!-- build_setting_mobile_view end -->