in reply to Re^5: Perlmonks site has become far too slow
in thread Perlmonks site has become far too slow
Try https://www.perlmonks.net/?node_id=11166139 (or whatever domain logs you out)
One problem is immanent, it's not enough to disable/delete a single node on update, but the parent chain too, because of the sub-thread view showing replies. (Your and Bliako's reply are missing)
Since we are working with multiple servers I'm pessimistic about using the filesystem for caching, I think it's far easier to implement in the database server.
FWIW I took a look into the Everything code yesterday, and while it's hard to tell without testing environment (my usual grievance) how it really works, I found that there is a central method
getNodebyID which occasionally does caching if called with the according flags.
There is a whole Cache class blessed to $DB to handle it.
There is also an updateNode method.
So in theory this should be easily done, alas only Gods can dev and test especially if the core Everything:: modules are concerned, which can't be patched by pmdevs.
Pmdevs like me are reduced to smartass comments here. (I can't even tell if the online versions of Everything:: really show the currently productive code)
In hindsight caching of getNodeById won't be sufficient, I don't think it returns already html
If you are interested in the gory details please check out the original documentation of Everything, (i.e. before it was heavily patched into Perlmonks)
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Perlmonks site has become far too slow (AnoServer/Load Balancer)
by LanX (Saint) on Aug 30, 2025 at 23:23 UTC | |
by LanX (Saint) on Sep 03, 2025 at 13:11 UTC | |
Re^7: Perlmonks site has become far too slow
by choroba (Cardinal) on Aug 31, 2025 at 19:11 UTC | |
by Corion (Patriarch) on Sep 01, 2025 at 06:37 UTC | |
by Discipulus (Canon) on Sep 01, 2025 at 12:08 UTC | |
by choroba (Cardinal) on Sep 01, 2025 at 12:49 UTC | |
by LanX (Saint) on Sep 01, 2025 at 10:09 UTC | |
by choroba (Cardinal) on Sep 01, 2025 at 10:50 UTC | |
by LanX (Saint) on Sep 01, 2025 at 14:28 UTC |