🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.infosystems.www.authoring.html
Article #39

Re: common main menu ?

#39
From: Lawrence D’Oliveiro
Date: Wed, 14 Oct 2026 23:16
72 lines
5089 bytes
On Fri, 25 Sep 2026 09:54:03 +0200, Arno Welzel wrote:

> Lawrence D’Oliveiro, 2026-09-24 04:55:
>
>> On Wed, 9 Sep 2026 14:10:30 +0200, Arno Welzel wrote:
>>
>>> Even PHP does need NOT(!) an ongoing process for this.
>>>
>>> Session cookies will be cleaned up WITHOUT cron and WITHOUT an
>>> constantly running process in PHP!
>>>
>>> You don't know that?
>>
>> Some code has to run the “delete from sessions where last_refreshed +
>> «expiry lifetime» < «now»” command every now and then, doesn’t it? I
>> guess the clunky way to do it is to have it happen as part of every
>> user page request. Not efficient.
>
>> Or do it as a separate cron task, which requires its own fiddly
>> management. Not the simplest as far as the the sysadmin who has to set
>> up the application is concerned.
>
> Since FPM runs constantly, there is no need for a separate cron task.

FPM may “run constantly”, but the PHP code doesn’t. It doesn’t offer a
way to run PHP code other than in response to an HTTP request. Because
that’s all mod_php (and precursor CGI) can do, and FPM is, after all,
just a faithful replication of that exact same environment.

>>> Lawrence D’Oliveiro, 2026-09-01 00:45:
>>>>
>>>> Tell that to the WordPress developers
>>>> <https://developer.wordpress.org/plugins/cron/>.
>>>
>>> That has NO RELEVANCE AT ALL for PHP itself!
>>
>> Of course it does. It’s a limitation of PHP that WordPress itself
>> has to work around.
>
> No. All these tasks are only WordPress related.

Doing periodic cleanups is not something specific to WordPress.
WordPress has to do it in a PHP-limited way precisely because it is
written in PHP.

> WordPress would do exactly the same if it was implemented in Node or
> any other language, since these tasks are things like "publish a
> post at the given date" or "clean up transients in the database when
> they expire" and so on.

The tasks would run more promptly and efficiently on non-PHP-based
frameworks, because they could run at exactly the right time, from a
background task, without depending on either periodic polling from a
cron-type service (requiring separate fiddly setup outside the web
application) or being triggered in response to random external user
actions.

>>> I've been doing "real-world" web applications since PHP exists.
>>> Yes professionally, not as a hobbyist.
>>
>> Yet you still have no idea about designing architectures that
>> require the least work on the part of those who have to administer
>> the systems you create.
>
> Whatever you say...

More than that, you seem to have trouble appreciating fundamental
limitations of PHP, preferring instead to blame tham on a particular
well-known PHP app when I offer that as an illustration of precisely
those limitations.

As though you don’t really know PHP at all ...
Technical Details
Message-ID: <11ap2go$1tsnt$4@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <10vaufi$3saf7$1@dont-email.me> <11174gf$d3j2$6@dont-email.me> <1117bj8$eu2d$1@dont-email.me> <111gdri$2v442$3@dont-email.me> <111hmik$3c48t$3@dont-email.me> <111k9iu$442g$4@dont-email.me> <111kd0v$4v7h$2@dont-email.me> <111m2e4$jh18$2@dont-email.me> <111nvfe$143ia$2@dont-email.me> <111o47i$15enm$2@dont-email.me> <111qj00$3f7de$6@dont-email.me> <111qmnk$3gd8e$2@dont-email.me> <1124ait$282i9$2@dont-email.me> <112gklk$248ek$2@dont-email.me> <112sbin$1nfom$3@dont-email.me> <112vo22$2ngug$3@dont-email.me> <11311h0$34pmm$4@dont-email.me> <11322l0$3d6tk$2@dont-email.me> <11393s9$1hrr7$5@dont-email.me> <113ctan$2md1l$1@dont-email.me> <113kknq$114l8$1@dont-email.me> <113q491$2pfco$2@dont-email.me> <114e194$18m2n$2@dont-email.me> <114gccm$24a99$1@dont-email.me> <115c1p9$2vier$1@dont-email.me> <115m16i$26h5h$2@dont-email.me> <11737rt$mhqn$1@dont-email.me> <117506v$1aljd$5@dont-email.me> <117ribn$14bin$1@dont-email.me> <11923ef$29ujm$6@dont-email.me> <11959as$3csmm$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: common main menu ?
Date: Wed, 14 Oct 2026 23:16:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 72
Message-ID: <11ap2go$1tsnt$4@dont-email.me>
References: <10vaufi$3saf7$1@dont-email.me> <11174gf$d3j2$6@dont-email.me>
	<1117bj8$eu2d$1@dont-email.me> <111gdri$2v442$3@dont-email.me>
	<111hmik$3c48t$3@dont-email.me> <111k9iu$442g$4@dont-email.me>
	<111kd0v$4v7h$2@dont-email.me> <111m2e4$jh18$2@dont-email.me>
	<111nvfe$143ia$2@dont-email.me> <111o47i$15enm$2@dont-email.me>
	<111qj00$3f7de$6@dont-email.me> <111qmnk$3gd8e$2@dont-email.me>
	<1124ait$282i9$2@dont-email.me> <112gklk$248ek$2@dont-email.me>
	<112sbin$1nfom$3@dont-email.me> <112vo22$2ngug$3@dont-email.me>
	<11311h0$34pmm$4@dont-email.me> <11322l0$3d6tk$2@dont-email.me>
	<11393s9$1hrr7$5@dont-email.me> <113ctan$2md1l$1@dont-email.me>
	<113kknq$114l8$1@dont-email.me> <113q491$2pfco$2@dont-email.me>
	<114e194$18m2n$2@dont-email.me> <114gccm$24a99$1@dont-email.me>
	<115c1p9$2vier$1@dont-email.me> <115m16i$26h5h$2@dont-email.me>
	<11737rt$mhqn$1@dont-email.me> <117506v$1aljd$5@dont-email.me>
	<117ribn$14bin$1@dont-email.me> <11923ef$29ujm$6@dont-email.me>
	<11959as$3csmm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 14 Oct 2026 23:16:41 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2028285"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX193eHdtgJZgfvQMqm5dQ+uP"; posting-host="ef67f4a7283e1d49e952a1a689508a25"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:KaVKBRUMq47z32oMxaMYTxuREBg= sha256:P1um4G7nGJtVplIOG5+9unWCkCYauz+OHd6nuKTkd4c=
	sha1:Hz2akhzyTM3dxr4DPLvewe/2O74= sha256:5TWnilyQAR+hfYoanV91H55OVQlxnheIPzKgbMX6Sbg=