mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Only embed cron.php if there is no cron lock present to reduce overhead. (Bug #45725 - Patch by TerryE)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10082 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d65ccbde11
commit
714aa8b09a
2 changed files with 20 additions and 0 deletions
|
@ -203,6 +203,7 @@
|
||||||
<li>[Fix] Only show "Add friend" and "Add foe" links if the specific module is enabled. (Bug #50475)</li>
|
<li>[Fix] Only show "Add friend" and "Add foe" links if the specific module is enabled. (Bug #50475)</li>
|
||||||
<li>[Fix] Correctly display list items in forum description in prosilver and administration. (Bug #48055 - Patch by leviatan21)</li>
|
<li>[Fix] Correctly display list items in forum description in prosilver and administration. (Bug #48055 - Patch by leviatan21)</li>
|
||||||
<li>[Fix] Fix handling of bookmarks and subscriptions on "split topcis", "merge topics" and "merge posts". (Bug #50035)</li>
|
<li>[Fix] Fix handling of bookmarks and subscriptions on "split topcis", "merge topics" and "merge posts". (Bug #50035)</li>
|
||||||
|
<li>[Fix] Only embed cron.php if there is no cron lock present to reduce overhead. (Bug #45725 - Patch by TerryE)</li>
|
||||||
<li>[Change] submit_post() now accepts force_approved_state key passed to $data to indicate new posts being approved (true) or unapproved (false).</li>
|
<li>[Change] submit_post() now accepts force_approved_state key passed to $data to indicate new posts being approved (true) or unapproved (false).</li>
|
||||||
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
|
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
|
||||||
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
|
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
|
||||||
|
|
|
@ -4284,7 +4284,26 @@ function page_footer($run_cron = true)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Call cron-type script
|
// Call cron-type script
|
||||||
|
$call_cron = false;
|
||||||
if (!defined('IN_CRON') && $run_cron && !$config['board_disable'])
|
if (!defined('IN_CRON') && $run_cron && !$config['board_disable'])
|
||||||
|
{
|
||||||
|
$call_cron = true;
|
||||||
|
|
||||||
|
// Any old lock present?
|
||||||
|
if (!empty($config['cron_lock']))
|
||||||
|
{
|
||||||
|
$cron_time = explode(' ', $config['cron_lock']);
|
||||||
|
|
||||||
|
// If 1 hour lock is present we do not call cron.php
|
||||||
|
if ($cron_time[0] + 3600 >= time())
|
||||||
|
{
|
||||||
|
$call_cron = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Call cron job?
|
||||||
|
if ($call_cron)
|
||||||
{
|
{
|
||||||
$cron_type = '';
|
$cron_type = '';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue