Analysis of the authenticity of static difference method _ related skills

Source: Internet
Author: User

1. About the use of pseudo static

Some users feel that the pseudo static and true static actual content will vary greatly, but in fact, from your personal point of view, you judge a post in the end is really static or pseudo static?

Estimates are very ugly, because the so-called static meaning, is the address without a question mark, without a question mark is static, whether he is true or false? Search engine can see?

So, in fact, whether it is true or false, in fact, for search engines are the same, the search engine did not say, you this is false, I do not include you.

Root dug bottom, why search engine will not include the URL with question mark? Because the search engine is afraid because of the question mark to enter the dead loop (before moving the net has such a loophole, spiders go out of the way), so very often with the address of the question mark will not go in, pseudo static for the search engine, in fact, is static, Because there is no question mark in the address, so there is no real static than pseudo static more than the argument.

2. Why choose Pseudo static

There are very many users who say:

It's really static, isn't it?

Why not really static?

Isn't it quicker to visit?

Isn't the load better?

Wait, wait ...

Here, in fact, only one question to answer: why the choice of MySQL.

Very many users probably do not understand why so many large forums have chosen the MySQL database as a storage mechanism, probably most of them are thinking: "Because DZ used MySQL, so is MySQL."

In fact, imagine why DZ in so many forum programs coexist in the day to survive and laugh, very big reason is because DZ used MySQL. Imagine if the big C changed the program is a text forum, that there will be dz today?

Or from another point of view, why do so many large Web sites have opted for MySQL rather than text as a storage mechanism?

The so-called text forum, actually with the true static argument almost, the data stored in the space above, a lot of read and written hard disk, etc. ...

Why would this writing be eliminated?

I believe the answer is not what the teacher said:

"Discuz.net currently has 2,129,867 posts, which are stored in HTML about 20799 M, or around 20G," he said. This does not calculate the amount of space wasted by disk storage (100 1k of files may be 200K). "

This argument from my own point of view, this reason can not give the user not to use true static sufficient reason.

However, another reason is worthy of our attention, but also why most stations do not choose to generate static:

"Removing and updating these HTML content can result in a lot of disk IO operations and a large amount of disk fragmentation."

As mentioned above, in practice it does cause a lot of disk I/O operations (input,output), the consequences of a large number of I/O operations can be imagined, resulting in a large number of disk fragmentation and even cause the hard drive to appear bad.

So for the generation of static, it would be better to use a text forum, can be more to solve your needs.

(Vice W is to do the text forum was born, when the name for Ofstar Http://www.sh012.com, after the development of the difficulties into MySQL, and PW generated static page is PW previous text way slightly improved to attract users eyeball of the pout)

Of course, if everyone has a good memory, should be able to remember when the PW4 PW Forum can not visit for a very long time, and then recovered to a period of time before the data, the official saying is that people attack the hard disk damage, in fact, this argument is relatively unreliable, relative to be attacked resulting in hard disk damage or a large number of i/ O operation of the consequences, I personally more inclined to the latter.

Of course, if you are more concerned about 5d6d, you should know that a few days before a day 5d6d inaccessible, according to unofficial news because the hard drive is broken, and the cause of the damage I think of course because a large number of users I/O operations, imagine, we a forum, to disk i/ O operation only for administrators to update the cache, and 5d6d each member is an administrator, imagine the disk is how much test? So I'm not surprised 5D6D's hard drive is broken.

Of course, perhaps in reading this article a lot of friends have used BT, also heard that BT on the hard disk is very hurt, can not open more, and the so-called damage, and here refers to the same thing, a large number of I/O caused disk fragmentation even disk bad.

Here are some very practical examples to illustrate the problem.

3. About the disadvantages of pseudo static

Of course, as the author of an article says.

"If the traffic is slightly larger using pseudo static on the CPU overload, I have more than 300 people online at the same time without the use of pseudo static when the online Super 500 people do not hang, my ISS number is 1000"

It is true that, because the pseudo static is to use the regular judgement rather than the real address, to identify which page is the responsibility of the direct designated by the CPU to judge, so the increase in CPU occupancy, is indeed the biggest fault of pseudo static.

4. What should we do?

Let's summarize.

1. Use True static and false static for SEO no difference

2. Using true static may cause hard disk damage and will affect forum performance

3. Use pseudo static will occupy a certain amount of CPU share, heavy use will cause CPU overload

4. The most important point we want to static is to SEO

So.

1. The use of true static method can be directly excluded, because no matter how the generation, the hard disk is very hurt.

2. Since the authenticity of the static effect is the same, we can choose pseudo static.

3. However, pseudo static mass use can be taken as CPU overload.

4. So we can just do it without a lot of use.

5. Since static is just for SEO to see, we only need pseudo static to SEO on the line, do not have to use to users.

6. So we can only use pseudo static in the archiver which is specially provided to the SEO to crawl.

5. Judge a website is true static or pseudo static

IE browser

Open the site you want to judge, and then enter Javascript:alert (document.lastmodified)in the URL box. This method can determine the last update time of a Web page. If this time is the same as the present time, the description is pseudo static, whereas it is really static.

Firefox Firefox browser

First use Firefox to open a Web page, and so on when the Web page completely open into the Firefox console, "Tools"-"Error Console"-Shortcut keys: shift+ctrl+j, and then enter the console:alert (document.lastmodified) , view the last modification time and record.
Next, close the console, refresh the page, and then use the same method to enter the query code in the console, and then look at the file's last modification time, several times in a row if the time difference can be judged that it is pseudo static

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.