[TikiWiki-commits] [Git][tikiwiki/tiki][master] [REF] Move "Retry-After" header in `TikiAccessLib->showSiteClosed` (when `$mode === "busy"`)

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <696fcb9dad6d_2c181c4487932@gitlab-sidekiq-low-urgency-cpu-bound-v2-6787bc4f54-p8p58.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
587343e5 by Merci Jacob at 2026-01-20T18:29:20+00:00
[REF] Move "Retry-After" header in `TikiAccessLib->showSiteClosed` (when `$mode === "busy"`)
---
* [REF] Move "Retry-After" header in `TikiAccessLib->showSiteClosed` (when `$mode === "busy"`)

See merge request tikiwiki/tiki!9373

- - - - -


2 changed files:

- lib/setup/load_threshold.php
- lib/tikiaccesslib.php


Changes:

=====================================
lib/setup/load_threshold.php
=====================================
@@ -15,7 +15,6 @@ if (function_exists('sys_getloadavg')) {
 
     if ($prefs['use_load_threshold'] == 'y' && $tiki_p_access_closed_site != 'y' && ! isset($bypass_siteclose_check)) {
         if ($server_load > $prefs['load_threshold']) {
-            header('Retry-After: ' . $prefs['load_retry_after']);
             TikiLib::lib('access')->showSiteClosed('busy');
         }
     } else {


=====================================
lib/tikiaccesslib.php
=====================================
@@ -1565,6 +1565,7 @@ class TikiAccessLib extends TikiLib
                 $title = $prefs['site_busy_title'];
                 $error = $prefs['site_busy_msg'];
                 $prefs['site_closed'] = 'y';    // tell the rest of tiki we're closed
+                header('Retry-After: ' . $prefs['load_retry_after']);
 
                 break;
             case 'maintenance':



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/587343e5f7d07cfe12fd123296cd6faad1739f4e

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/587343e5f7d07cfe12fd123296cd6faad1739f4e
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.