/
home
/
altere25
/
sportzsoftlivemeet.com
/
wp-content
/
plugins
/
wp-smushit
/
core
/
/home/altere25/sportzsoftlivemeet.com/wp-content/plugins/wp-smushit/core
mkdir
upload
Name
Size
Mode
Actions
api/
-
0755
rm
avif/
-
0755
rm
backups/
-
0755
rm
cache/
-
0755
rm
cdn/
-
0755
rm
cli/
-
0755
rm
directory/
-
0755
rm
external/
-
0755
rm
image-dimensions/
-
0755
rm
integrations/
-
0755
rm
lazy-load/
-
0755
rm
lcp/
-
0755
rm
media/
-
0755
rm
media-library/
-
0755
rm
membership/
-
0755
rm
modules/
-
0755
rm
next-gen/
-
0755
rm
parser/
-
0755
rm
photon/
-
0755
rm
png2jpg/
-
0755
rm
resize/
-
0755
rm
s3/
-
0755
rm
security/
-
0755
rm
smush/
-
0755
rm
srcset/
-
0755
rm
stats/
-
0755
rm
threads/
-
0755
rm
transform/
-
0755
rm
webp/
-
0755
rm
class-animated-status-controller.php
2815
0644
edit
dl
rm
class-array-utils.php
1718
0644
edit
dl
rm
class-attachment-id-list.php
2437
0644
edit
dl
rm
class-backup-size.php
1539
0644
edit
dl
rm
class-cache-controller.php
3424
0644
edit
dl
rm
class-cli.php
8729
0644
edit
dl
rm
class-configs.php
24139
0644
edit
dl
rm
class-controller.php
1627
0644
edit
dl
rm
class-core.php
23093
0644
edit
dl
rm
class-cron-controller.php
782
0644
edit
dl
rm
class-deprecated-hooks.php
3891
0644
edit
dl
rm
class-error-handler.php
8146
0644
edit
dl
rm
class-file-system.php
1951
0644
edit
dl
rm
class-file-utils.php
680
0644
edit
dl
rm
class-format-utils.php
243
0644
edit
dl
rm
class-helper.php
8185
0644
edit
dl
rm
class-hub-connector.php
15938
0644
edit
dl
rm
class-installer.php
4967
0644
edit
dl
rm
class-keyword-exclusions.php
7053
0644
edit
dl
rm
class-modules.php
1354
0644
edit
dl
rm
class-optimization-controller.php
1054
0644
edit
dl
rm
class-plugin-settings-watcher.php
2397
0644
edit
dl
rm
class-product-analytics.php
7996
0644
edit
dl
rm
class-rest.php
2386
0644
edit
dl
rm
class-server-utils.php
4388
0644
edit
dl
rm
class-settings.php
22735
0644
edit
dl
rm
class-smush-file.php
311
0644
edit
dl
rm
class-stats.php
28696
0644
edit
dl
rm
class-time-utils.php
275
0644
edit
dl
rm
class-timer.php
279
0644
edit
dl
rm
class-upload-dir.php
3716
0644
edit
dl
rm
class-url-utils.php
1586
0644
edit
dl
rm
class-wp-query-utils.php
314
0644
edit
dl
rm
wp-compat.php
1582
0644
edit
dl
rm
Edit:
/home/altere25/sportzsoftlivemeet.com/wp-content/plugins/wp-smushit/core/class-cache-controller.php
(3424B)
<?php namespace Smush\Core; class Cache_Controller extends Controller { const SHOW_CACHE_NOTICE_TRANSIENT = 'wp_smush_show_cache_notice'; const CLEAR_CACHE_ACTION = 'wp_smush_clear_page_cache'; public function __construct() { $this->register_action( 'wp_smush_webp_status_changed', array( $this, 'webp_status_changed' ) ); $this->register_action( 'wp_smush_webp_method_changed', array( $this, 'webp_method_changed' ) ); $this->register_action( 'wp_smush_cdn_status_changed', array( $this, 'cdn_status_changed' ) ); // TODO: identify other cases where cache should be cleared and call the clear_third_party_cache method $this->register_action( 'wp_ajax_smush_dismiss_cache_notice', array( $this, 'dismiss_cache_notice' ) ); $this->register_action( 'wp_smush_header_notices', array( $this, 'maybe_show_cache_notice' ) ); } public function cdn_status_changed() { $this->clear_third_party_cache( 'cdn' ); } public function webp_method_changed() { $this->clear_third_party_cache( 'webp_method' ); } public function webp_status_changed() { $this->clear_third_party_cache( 'webp' ); } private function clear_third_party_cache( $notice_key = '' ) { do_action( self::CLEAR_CACHE_ACTION ); if ( ! has_action( self::CLEAR_CACHE_ACTION ) && $notice_key ) { // If no one is handling the cache clearing then show a notice set_transient( self::SHOW_CACHE_NOTICE_TRANSIENT, $notice_key ); } } public function dismiss_cache_notice() { check_ajax_referer( 'wp-smush-ajax' ); // Check for permission. if ( ! Helper::is_user_allowed( 'manage_options' ) ) { wp_die( esc_html__( 'Unauthorized', 'wp-smushit' ), 403 ); } delete_transient( self::SHOW_CACHE_NOTICE_TRANSIENT ); wp_send_json_success(); } public function maybe_show_cache_notice() { $notice = $this->get_cache_notice(); if ( empty( $notice ) ) { return; } ?> <div class="sui-notice sui-notice-info" id="wp-smush-cache-notice"> <div class="sui-notice-content"> <div class="sui-notice-message"> <i class="sui-notice-icon sui-icon-info" aria-hidden="true"></i> <p><?php echo wp_kses_post( $notice ); ?></p> </div> <div class="sui-notice-actions"> <button class="sui-button-icon smush-dismiss-notice-button"> <i class="sui-icon-check" aria-hidden="true"></i> <span class="sui-screen-reader-text"><?php esc_html_e( 'Dismiss', 'wp-smushit' ); ?></span> </button> </div> </div> </div> <?php } private function get_cache_notice() { $notice_key = get_transient( self::SHOW_CACHE_NOTICE_TRANSIENT ); if ( empty( $notice_key ) ) { return; } $settings = Settings::get_instance(); if ( 'cdn' === $notice_key ) { return $settings->has_cdn_page() ? __( 'CDN status has changed.<br/>If you have a page caching plugin or server caching, please clear it to ensure everything works as expected.', 'wp-smushit' ) : ''; } if ( 'webp' === $notice_key || 'webp_method' === $notice_key ) { $notice = 'webp' === $notice_key ? __( 'Local WebP status has changed.<br/>If you have a page caching plugin or server caching, please clear it to ensure everything works as expected.', 'wp-smushit' ) : __( 'Local WebP method has been updated.<br/>If you have a page caching plugin or server caching, please clear it to ensure everything works as expected.', 'wp-smushit' ); return $settings->has_webp_page() ? $notice : ''; } } }
Save
cmd:
run