Skip to content

Commit

Permalink
Add new heading Misc. Auto-Clear Options; See: wpsharks/comet-cache#111
Browse files Browse the repository at this point in the history
  • Loading branch information
kristineds committed Oct 19, 2015
1 parent 9652cb0 commit 746b27b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/includes/classes/MenuPageOptions.php
Expand Up @@ -375,9 +375,13 @@ public function __construct()
echo ' <p class="info" style="display:block; margin-top:-15px;">'.__('In a Multisite Network, each child blog (whether it be a sub-domain, a sub-directory, or a mapped domain); will automatically change the leading <code>http://[sub.]domain/[sub-directory]</code> used in pattern matching. In short, there is no need to add sub-domains or sub-directories for each child blog in these patterns. Please include only the <a href="https://gist.github.com/jaswsinc/338b6eb03a36c048c26f" target="_blank">REQUEST_URI</a> (i.e., the path) which leads to the XML Sitemap on all child blogs in the network.', SLUG_TD).'</p>'."\n";
}
echo ' </div>'."\n";

echo ' <hr />'."\n";
echo ' <h3>'.__('Misc. Auto-Clear Options', SLUG_TD).'</h3>'."\n";

if (IS_PRO || $this->plugin->isProPreview()) {
echo '<h4 style="margin-bottom:0;">'.__('Auto-Clear a List of Custom URLs Too?', SLUG_TD).'</h4>'."\n";
echo '<p style="margin-top:2px;">'.sprintf(__('When you update a Post/Page, approve a Comment, or make other changes where %1$s can detect that a Post/Page cache should be cleared to keep your site up-to-date; then %1$s will also clear a list of custom URLs that you list here. <strong>Please list one URL per line.</strong>', SLUG_TD), esc_html(NAME)).'</p>'."\n";
echo '<p style="margin-top:2px;">'.sprintf(__('When you update a Post/Page, approve a Comment, or make other changes where %1$s can detect that a Post/Page cache should be cleared to keep your site up-to-date; then %1$s will also clear a list of custom URLs that you list here. <strong>Please list one URL per line.</strong> (Note that wildcards and RegEx\'s are <strong>not</strong> supported here.)', SLUG_TD), esc_html(NAME)).'</p>'."\n";
echo '<p><textarea name="'.esc_attr(GLOBAL_NS).'[saveOptions][cache_clear_urls]" spellcheck="false" wrap="off" rows="5">'.format_to_edit($this->plugin->options['cache_clear_urls']).'</textarea></p>'."\n";
}
echo ' </div>'."\n";
Expand Down

0 comments on commit 746b27b

Please sign in to comment.