Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Perlmonks site has become far too slow (caching)

by LanX (Saint)
on Aug 29, 2025 at 18:04 UTC ( [id://11166140]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perlmonks site has become far too slow
in thread Perlmonks site has become far too slow

> I'm thinking of measuring the impact of a -f call for every page load.

I'm not sure what a -f call means ... (?)

> I think converting to static files for (say) SoPW nodes for Anonymous Monk might reduce the load so that the site remains accessible for the human users.

This is a brainstorm:

From what I see is anonymous monk's only dynamic content for > 99% of the nodes is in the nodelets ( Chatterbox, Other Users, and what else?) and those should be of low priority for AnoMonk.

A frontend could check if the user is logged in and if the node-id is lower than the last caching and/or deliver a static file if present.

If the caching to a static file is done ...

  • once per day as a bulk operation
  • or if file is missing
  • or on every write (like updates)
... is a matter of debate.

However, not sure how best to deal with named nodes.

I can't tell if the caching should best be done in the file system or in a DB.

And if the "frontend" could be in realized in a web-server rule or a patch in Everything.pm

(I'm sure I've not covered all edge cases, but wanted at least have it written them down for future reference :)

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11166140]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2026-02-09 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.