diff --git a/docs/admin_dashboard.php.html b/docs/admin_dashboard.php.html
index edc076c..35da14a 100644
--- a/docs/admin_dashboard.php.html
+++ b/docs/admin_dashboard.php.html
@@ -540,6 +540,7 @@
Source: admin/dashboard.php
$screen = get_current_screen();
$success_messages = [
+ 'purge_image_optimizer_cache' => esc_html__( 'Image optimizer cache purged successfully!', 'powered-cache' ),
'flush_page_cache_network' => esc_html__( 'Page cache deleted for all websites!', 'powered-cache' ),
'flush_page_cache' => esc_html__( 'Page cache deleted successfully!', 'powered-cache' ),
'flush_object_cache' => esc_html__( 'Object cache deleted successfully!', 'powered-cache' ),
@@ -562,6 +563,7 @@ Source: admin/dashboard.php
}
$err_messages = [
+ 'purge_image_optimizer_cache_failed' => esc_html__( 'Could not purge image optimizer cache. Please try again later and ensure your license key is activated!', 'powered-cache' ),
'generic_permission_err' => esc_html__( 'You don\'t have permission to perform this action!', 'powered-cache' ),
'flush_page_cache_network_err_permission' => esc_html__( 'You don\'t have permission to perform this action!', 'powered-cache' ),
'flush_page_cache_err_permission' => esc_html__( 'You don\'t have permission to perform this action!', 'powered-cache' ),
diff --git a/docs/admin_partials_settings-page.php.html b/docs/admin_partials_settings-page.php.html
index e08891b..5d153c4 100644
--- a/docs/admin_partials_settings-page.php.html
+++ b/docs/admin_partials_settings-page.php.html
@@ -44,6 +44,7 @@ Source: admin/partials/settings-page.php
use function PoweredCache\Utils\get_decrypted_setting;
use function PoweredCache\Utils\get_doc_url;
use function PoweredCache\Utils\get_timeout_with_interval;
+use function PoweredCache\Utils\is_local_site;
use function PoweredCache\Utils\is_premium;
use function PoweredCache\Utils\mask_string;
use function PoweredCache\Utils\sanitize_css;
@@ -1243,6 +1244,15 @@ Source: admin/partials/settings-page.php
</span>
</label>
</div>
+ <?php if ( ! is_multisite() && ! is_local_site() && is_premium() ) : ?>
+ <div class="sui-form-field">
+ <a
+ href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=powered_cache_purge_image_optimizer' ), 'powered_cache_purge_image_optimizer' ) ); ?>"
+ class="sui-button sui-button-ghost" id="clear_image_optimizer_cache">
+ <?php esc_html_e( 'Clear Image Optimizer Cache', 'powered-cache' ); ?>
+ </a>
+ </div>
+ <?php endif; ?>
</div>
</div>
diff --git a/docs/powered_cache_admin_page_after_settings_nav.html b/docs/powered_cache_admin_page_after_settings_nav.html
index ba3b296..477b0da 100644
--- a/docs/powered_cache_admin_page_after_settings_nav.html
+++ b/docs/powered_cache_admin_page_after_settings_nav.html
@@ -90,7 +90,7 @@ do_action( 'po
Source:
diff --git a/docs/powered_cache_admin_page_before_file_optimization.html b/docs/powered_cache_admin_page_before_file_optimization.html
index 9456514..755dab2 100644
--- a/docs/powered_cache_admin_page_before_file_optimization.html
+++ b/docs/powered_cache_admin_page_before_file_optimization.html
@@ -90,7 +90,7 @@ do_actio
Source:
diff --git a/docs/powered_cache_purge_all_cache.html b/docs/powered_cache_purge_all_cache.html
index 3a91e5c..7d6fc8a 100644
--- a/docs/powered_cache_purge_all_cache.html
+++ b/docs/powered_cache_purge_all_cache.html
@@ -90,7 +90,7 @@