Thanks. I didn't think of using mod_rewrite.

Though it's not from getting a ton of real people clicks that generates the high server load and crashing it. I just posted a video link to the page, and then removed the link. It's as if the Facebook robot is doing a DOS attack on my server, then stops about five minutes later!!!!! The page has 180,242 likes.

Looking at the logs, from the post and delete, in five minutes, Facebook hit the URL 153 times then finally stopped, with a special guest appearance from the Google bot!!! It's like there's an infinite loop some where in there!!!

Then when I re-posted the video link and keep it, it looks like when it shows up in SSH --> top, it's just actual Facebook users clicking it that makes the script show up, and that does not crash the server or make the load go very high (at 2.81 right now)! It looks like it's the first post of a video that causes Facebook to crash the server.


In reply to Re^2: Script needs major optimizing. by Jesse Smith
in thread Script needs major optimizing. by Jesse Smith

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.