Quote:
Originally Posted by TFCash
The sample page you posted https://www.centerfoldsblog.com/ would no longer be able to take comments. The search function wouldn't work. From the "Static HTML plugin website"
|
Please tell me why it won't be able to take comments and why the search function won't work? It looks like I'm talking to a little kid. Your GFY reg. date says you are here since 2001. And you don't understand how a simplest caching algo works? Let me explain it to you thenl, ok?
Let's consider you have some WordPress site with a search function. When a visitor does search for the first time, the PHP code will be executed and there will be a bunch of requests to SQL. After that the results will be stored as a static page. So next time this or any other visitor will see the previously generated HTML content. So no PHP code will be executed and there will be a zero load to SQL.
Now you will say it won't work because when the new post (a porn tube video or any other shit) will be added, the previously generated static HTML page with search results won't "see it". Right? No dude, you are wrong. Because every static page has a life period defined by the site owner.
As I've tried to explain it above, let's consider you have a 10 second life time period for static search pages. What does it mean? It does mean that for every 10 seconds the search results won't change, but after that they will be regenerated again by a new visitor's search request, or won't be regenerated for the unlimited time w/o a new search request (no regeneration = no SQL requests). So in case of a very intensive traffic (say 100K visitors per second), the PHP code and SQL requests will be executed only once per 10 seconds and it doesn't matter if there was 1, 100, 100,000 or 100,000 visitors during the mentioned time period. Any other super-duper optimized script will kill your server with such a load, because in case of 10,000 visitors at the same time it will do
at least 10,000 requests to the SQL server.
Do you understand it now or I need to go one level down to explain this obvious thing to you?
Here is my advice, dude. Don't try to argue on things you have no idea about. Don't make you look stupid.
WordPress is the most secure CMS today and it has no alternatives. Also there is a ton of high quality code (themes and plugins) for it, including those that will optimize it better than any other alternative CMS can't even dream about. Period.