Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafauysal committed Jul 16, 2024
1 parent efb0f3e commit 5a4c225
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/admin_dashboard.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ <h1 class="page-title">Source: admin/dashboard.php</h1>
$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' ),
Expand All @@ -562,6 +563,7 @@ <h1 class="page-title">Source: admin/dashboard.php</h1>
}

$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' ),
Expand Down
10 changes: 10 additions & 0 deletions docs/admin_partials_settings-page.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ <h1 class="page-title">Source: admin/partials/settings-page.php</h1>
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;
Expand Down Expand Up @@ -1243,6 +1244,15 @@ <h1 class="page-title">Source: admin/partials/settings-page.php</h1>
&lt;/span>
&lt;/label>
&lt;/div>
&lt;?php if ( ! is_multisite() &amp;&amp; ! is_local_site() &amp;&amp; is_premium() ) : ?>
&lt;div class="sui-form-field">
&lt;a
href="&lt;?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">
&lt;?php esc_html_e( 'Clear Image Optimizer Cache', 'powered-cache' ); ?>
&lt;/a>
&lt;/div>
&lt;?php endif; ?>
&lt;/div>

&lt;/div>
Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_admin_page_after_settings_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h4 class="name" id="powered_cache_admin_page_after_settings_nav">do_action( 'po

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="admin_partials_settings-page.php.html">admin/partials/settings-page.php</a>, <a href="admin_partials_settings-page.php.html#line104">line 104</a>
<a href="admin_partials_settings-page.php.html">admin/partials/settings-page.php</a>, <a href="admin_partials_settings-page.php.html#line105">line 105</a>
</li></ul></dd>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h4 class="name" id="powered_cache_admin_page_before_file_optimization">do_actio

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="admin_partials_settings-page.php.html">admin/partials/settings-page.php</a>, <a href="admin_partials_settings-page.php.html#line568">line 568</a>
<a href="admin_partials_settings-page.php.html">admin/partials/settings-page.php</a>, <a href="admin_partials_settings-page.php.html#line569">line 569</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_purge_all_cache.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h4 class="name" id="powered_cache_purge_all_cache">do_action( 'powered_cache_pu

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="admin_dashboard.php.html">admin/dashboard.php</a>, <a href="admin_dashboard.php.html#line651">line 651</a>
<a href="admin_dashboard.php.html">admin/dashboard.php</a>, <a href="admin_dashboard.php.html#line653">line 653</a>
</li></ul></dd>


Expand Down

0 comments on commit 5a4c225

Please sign in to comment.