Re:Fighting Back After Hacker News Took Down My Site
by sc68cal on Thursday July 14, 2011 @11:04AM
(#2763318)
What about isolating the popular URL and temporarily serving a static version of the page?
[ Parent
| on HN ]
Re:Fighting Back After Hacker News Took Down My Site
by rellik on Thursday July 14, 2011 @11:06AM
(#2763329)
That's what the page caching plugin does. It puts a static file in nginx/apache's search path, so it never hits PHP
Re:Fighting Back After Hacker News Took Down My Site
by sc68cal on Thursday July 14, 2011 @11:09AM
(#2763353)
Which plugin did you use? WP Super Cache? I'd like to take a look through the code.
Re:Fighting Back After Hacker News Took Down My Site
by rellik on Thursday July 14, 2011 @11:14AM
(#2763376)
I used W3 Total Cache. It generates a static file and puts it in apache's search path, so it never hits PHP
Re:Fighting Back After Hacker News Took Down My Site
by spydum on Thursday July 14, 2011 @11:12AM
(#2763363)
total cache, super cache, most of them create static html versions of the page. Super Cache is a bit more clever in that it depends on htaccess instead of PHP code to check to see if the on-disk cached version exists. The benefit here is PHP module does not need to fire up -- apache can serve this very rapidly with little memory footprint.