-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache crawler - run within a certain range of time only #621
base: dev
Are you sure you want to change the base?
Cache crawler - run within a certain range of time only #621
Conversation
@lslisa will need to review wording and document new functionality. |
src/crawler.cls.php
Outdated
* | ||
* @since 6.1 | ||
*/ | ||
public static function _crawler_in_schedule_time() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be static?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is different things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
tpl/crawler/settings-general.tpl.php
Outdated
<div class="litespeed-desc"> | ||
<?php echo __('Specify the crawler running periods.', 'litespeed-cache'); ?> | ||
<br /> | ||
<?php echo sprintf( __('You can add multiple ranges in 24-hour format <code>HH:mm-HH:mm</code> delimited by %s', 'litespeed-cache'), '<code>,</code>'); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time format shouldn't be in translatable string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
tpl/crawler/settings-general.tpl.php
Outdated
<br /> | ||
<?php echo sprintf( __('You can add multiple ranges in 24-hour format <code>HH:mm-HH:mm</code> delimited by %s', 'litespeed-cache'), '<code>,</code>'); ?> | ||
<br /> | ||
<?php echo sprintf( __('Server time: %s', 'litespeed-cache'), '<code>'. date('H:m') . '</code>'); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is redundant to use sprintf here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed and left only __
tpl/crawler/settings-general.tpl.php
Outdated
@@ -38,9 +38,9 @@ | |||
<div class="litespeed-desc"> | |||
<?php echo __('Specify the crawler running periods.', 'litespeed-cache'); ?> | |||
<br /> | |||
<?php echo sprintf( __('You can add multiple ranges in 24-hour format <code>HH:mm-HH:mm</code> delimited by %s', 'litespeed-cache'), '<code>,</code>'); ?> | |||
<?php echo sprintf( __('You can add multiple ranges in 24-hour format <code>%s</code> delimited by %s', 'litespeed-cache'), 'HH:mm-HH:mm', '<code>,</code>'); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same to tag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
tpl/crawler/settings-general.tpl.php
Outdated
<br /> | ||
<?php echo sprintf( __('Server time: %s', 'litespeed-cache'), '<code>'. date('H:m') . '</code>'); ?> | ||
<?php echo __('Server time:', 'litespeed-cache') . ' <code>'. date('H:m') . '</code>'; ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same to colon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
No description provided.