I just checked it out, and it seems to work fine. Going back to nodes that I have just been to indeed loads from a cache (and it's not my browser) instead of perlmonks. Now if only you could setup a cron script to do the updating automatically, but we all know that is a foolish idea and shouldn't be considered (updating all the nodes in the cache every few minutes? lol).

One thing I will mention: merlyn has written an article that could be very useful in this sort of application. The only change you would really need to incorporate is this: set a lower time limit of when content should be re-grabbed from the perlmonks server, but where the older content is still shown. (ie: After a cached node is older than 3 minutes, show this 3-minute-old node and fork() off a process to recache the node in the background). Then, select a second, longer time limit at which content will be grabbed fresh from the perlmonks server and displayed directly to the user and cached. In this way, you will pick up a little more speed. For a more in-depth description of what I'm talking about, read that article I pointed to.


Update: Though it's cool, does this really have a lot of use? The only thing this really does is not have to hit the server for the same node every 2 minutes. Unless lots of users started using this, it won't decrease the server load on perlmonks in any way. Even then, you simply throw the user onto the actual perlmonks site as soon as they try to submit a form. Maybe if you could send form data through your server as well. All I do around here is submit forms: login, chatterbox (unusual, but it happens), consideration of nodes, search, poll, etc etc. So it doesn't give me all that big of an advantage.


If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, reply to this node or /msg me to tell me what is wrong with the post, so that I may update the node to the best of my ability. If you do not inform me as to why the post deserved a downvote, your vote does not have any significance and will be disregarded.


In reply to Re: mirror II - the revenge by Coruscate
in thread mirror II - the revenge by Jaap

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.