Thread View: comp.infosystems.www.authoring.html
2 messages
2 total messages
Started by Lawrence D’Oliveiro
Wed, 14 Oct 2026 23:16
Re: common main menu ?
Author: Lawrence D’Oliveiro
Date: Wed, 14 Oct 2026 23:16
Date: Wed, 14 Oct 2026 23:16
72 lines
5089 bytes
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 ...
Re: common main menu ?
Author: Arno Welzel
Date: Tue, 20 Oct 2026 10:19
Date: Tue, 20 Oct 2026 10:19
62 lines
4465 bytes
4465 bytes
Lawrence D’Oliveiro, 2026-10-15 01:16: > On Fri, 25 Sep 2026 09:54:03 +0200, Arno Welzel wrote: [...] >>>> 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. Therefore it makes no sense, to say, that this has anything to do with the lanuage which was used to create WordPress. > WordPress has to do it in a PHP-limited way precisely because it is > written in PHP. No. WordPress would do this in exactly the same way, when it was written in JavaScript, Rust, C# or whatever. If you need periodically recurring tasks you need some process to handle this - no matter which language you use. >> 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. This is also possible with PHP - even with scheduled timers which trigger at an exact time down to the second or with intervals like "run ever 3 hours and 15 minutes starting at 5:00 this day and stopping 48 hours later". You just don't know this, because you don't want use it. And you alway confuse "programming language" with "runtime environment". It is not the language "JavaScript" which makes things like in Node possible - it is the runtime environment "Node". > As though you don’t really know PHP at all ... Whatever you say. When it makes you happy... -- Arno Welzel https://arnowelzel.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads