Hello,

Yesterday I have downloaded a copy of "Everything2" (as I was told it's pretty much the same version that PerlMonks uses but PMDev team have implemented few modifications/fixes on it).

I have not installed it yet, or experiment with it, but I've gone through few files and read some codes & I came out with a suggestion hoping it might make PM faster and take off some load

Currently PerlMonks uses its own Caching mechanism which uses database to maintain cache version and its own queue ...etc

In NodeCache.pm I've read this comment:

# Each httpd runs in its own fork and memory space so we cannot # share the cache info across httpd's (even if we could, it wouldn't # work for multiple web server machines). So each httpd keeps a # cache for itself. A problem arises when one httpd process modifies # a node that another process has in its cache. How does that other # httpd process know that what it has in its cache is stale?

My suggestion is using: Cache::Memcached::Fast which will be faster and will solve that problem and remove the need for the version table.

And it will work on multiple servers without any issue.


In reply to PerlMonks Caching by ahmad

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.