-
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?
Changes from 11 commits
3716165
06e501f
c1f8d64
5e1b605
3e8bf12
d5b15a2
717b1bc
4e93ce5
0193066
4285541
b93d92b
93648f2
a64bdd0
e645104
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,25 @@ | |
</td> | ||
</tr> | ||
|
||
<tr> | ||
<th> | ||
<?php $id = Base::O_CRAWLER_SCHEDULE_TIME; ?> | ||
<?php $this->title($id); ?> | ||
</th> | ||
<td> | ||
<?php $this->build_input($id); ?> | ||
<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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||
<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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. removed and left only __ |
||
<br /> | ||
<code>00:00-06:00 , 20:00-23:59, 01:00-05:00</code> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<th> | ||
<?php $id = Base::O_CRAWLER_USLEEP; ?> | ||
|
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.
function that calls this function is 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.
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