Website construction

Solve the problem that the WP PostViews plug-in does not count after the website is statically cached

Website construction

Solve several problems after enabling WP Super Cache

Website construction

Customize a QQ mailbox subscription based on Baidu Alliance label advertising

Website construction

Add "nofollow" option to XFN link relationship

Website construction

Postpone WordPress RSS/Feed subscription data with RSS tips

December 23, 2021

Solve the problem that Baidu Search appears a security center reminder

one thousand five hundred and thirty-seven zero
Since the blog almost broke, it has paid little attention to SEO. When Baidu searched the domain name "zhang. ge" of foreign lines by chance yesterday, the following prompt was found: Nani? And this kind of thing? However, the search for "zhangge.net" failed, which seems to be a false alarm. Click to open it, and you will be prompted as follows: When you see a "Apply for Unsealing" button, click it, fill in the form and submit it: As a result, it didn't take long, and after about an hour or so, you received the approval from Baidu
February 4 · 2020

A series of troubles caused by the blocking of 443 port by telecom broadband

twenty-one thousand four hundred and sixteen twelve
It's been a long time since I had a blog. Recently, the coronavirus epidemic can only stay at home, either with children or with news. Recently, I just had some experience with the KONG gateway. I thought about sorting out the blog and found that the background could not be opened. After checking, I found that the original station I deployed on Qunhui had already hung up B, and only CloudFlare's CDN cache was barely supported. After further diagnosis, the root cause is that the 443 port of the telecom broadband is blocked, so CloudFlare's return to the source is blocked. I silently greeted (crab) in my heart, and then quickly thought about several plans:
June 2, 2019

Zhang Ge Blog shares experience and skills of using CloudFlare CDN to accelerate

fourteen thousand and fifty-five one
The previous article on my blog mentioned that because the personalized domain name zhang.ge was changed, it could not be recorded, so the server had to be moved to foreign countries. Here is also a passing story. At present, the blog uses AWS lightsail, coordinates Tokyo, and the configuration is as shown in the figure: Figure 1: I choose Package 3, and an external 20GB cloud data disk is about $10 a month, which translates into about 80 softcoins, It is more cost-effective than most domestic ECS configured in Hong Kong or overseas. It will be cheaper if you choose the first two packages. Figure 2: Expense report in recent months
March 22, 2019

Solve the problem that the comment box does not follow and the page is refreshed after upgrading WordPress 5.1

four thousand one hundred and forty-four twenty-five
Recently, I found many problems in the blog. First, I found that the picture black box and the JS QR code were invalid. Then, I clicked the reply button to refresh the page directly, but there was no comment box to follow the effect. Today, even the CSS icon on the website was hung... I couldn't bear it. I decided to take a moment to see what the problem was. I didn't find an obvious error when I opened F12. Since it was the CSS icon hanging, it should be that there was a problem with the CSS address of my external link to fontawesome. So I filtered the address and found it was 301?? The similar situation is as follows: cdn.bootcss
October 20, 2017

Record of solving the problem of computer CPU soaring caused by blog pages

one thousand one hundred and thirty-three forty-six
There have been anonymous feedback from several visitors that as long as I turn on the CPU of my blog computer, it will go crazy: because I have been busy all the time, first, my own MacbookAir is not abnormal when it is turned on, and second, because I have not made any changes recently, there should be no problems. I didn't think of this problem until today when I was free, so I asked several friends to try it, and they all reported that there was a problem! The CPU is spinning wildly under Windows, and the fan is whistling under MAC (strangely, my MAC is OK). It seems that it is really necessary to solve this problem
October 2, 2017

Blog integration Hitokoto · One word classic sentence function

ten thousand five hundred and thirty-five thirty-seven
Hitokoto · Yiyan is an interesting project. The official self introduction is as follows: Yiyan Network (Hitokoto. cn) was founded in 2016 and belongs to the Mengchuang Team. At present, the website mainly provides one sentence service. Animation or fiction or the Internet, no matter where we are, we will always see one or two sentences that can penetrate your heart. We put these sentences together to form a one word network to convey more feelings. If possible, we hope that we have not stopped the service that day. In short, a word means a sentence, which can
August 6, 2017

WordPress publishes/updates articles, submits/reviews comments, and automatically clears AliCloud CDN cache

seven thousand two hundred and ninety-seven fifty-seven
More or less friends who have used CDN have been puzzled by the fact that article updates cannot automatically delete the CDN cache. In response to this pain point, Zhang Ge's blog has also published relevant tutorials for many times to solve the doubts of grassroots webmasters, such as WordPress publishing/updating articles, submitting/reviewing comments to automatically clean up Tencent Cloud CDN cache WordPress publishing/updating articles Submitting/reviewing comments automatically cleans the VeryCloud cache Nginx helper pure code version, and article comment publishing automatically cleans the Fastcgi cache. However, it still does not
July 13, 2017

Solve the problem that the WP PostViews plug-in does not count after the website is statically cached

five thousand five hundred and nineteen thirty
Suddenly, I found that the article browsing count function failed. It took several months for the article to reach hundreds of views. I thought it was because the recent articles were unpopular and unpopular. However, it has been released for several months, and the number of visitors is less than 200, which is unreasonable. 1、 I found the problem and took the time to analyze it. As a result, I checked the website log and found that none of the requests for browsing count... Because the website has enabled pure static cache (nginx fastcgi_cache), the counting method of wp postviews will automatically change to ajax submission method
November 22, 2016

Use HSTS security protocol flexibility to solve the compatibility problem of HTTPS in the whole station

fifteen thousand four hundred and thirty-one eighty-two
Guide: At present, many stations have started to implement HTTPS, and most of the obsessive-compulsive webmasters will also enable the mandatory HTTPS mechanism, and 301 HTTP requests for websites will be redirected to HTTPS, so as to achieve HTTPS for all stations. This is obviously a rude practice. Next, Zhang Ge Blog will share the flexible practice currently being used and bid farewell to rudeness. 1、 HSTS protocol Here we want to use a new security protocol: HSTSHSTS (HTTP Strict Transport Security)
October 23, 2016

Baidu Embedded Website Search https Practice Sharing

one thousand five hundred and three fifty-eight
Baidu site embedded search, I believe many websites have been used for some time. It's a pity that while Baidu has vigorously promoted the https-based website, its peripheral products have made a face of themselves and are completely behind schedule. It has to be said that Baidu, an embedded site search, gives more DIY daydreams to the website, making the search more suitable for various themes. The original: Ps: Preview address: https://zhang.ge/search.html , how to make it will not be repeated here, please refer to the history tutorial of this site. This thing is good, but
October 15, 2016

Nginx helper pure code version, article comment release automatically cleans the Fastcgi cache

one thousand one hundred and eighteen sixty-five
Guide: Zhang Ge's blog has shared a tutorial about Nginx starting fastcgi static cache acceleration before, and also mentioned the best matching plug-in for WordPress: Nginx Helper. This article shares an original pure code version of Nginx Helper for your own use, to help your website eliminate another plug-in
September 10, 2016

Share the Baidu like reward function used by Zhang Ge's blog

eleven thousand nine hundred and six one hundred and ten
Before sharing, I must admit that the article reward function is just a chicken ribs and a fancy function in most websites. It's a pity to discard it. However, in order to enrich all aspects of the website, most webmasters are also happy to toss about the function of natural merging eggs. Well, I don't care whether it is useful or not. I will share it first. I think there must be many station leaders who are happy to toss and turn. 1、 Baidu Rewards Friends who often pay attention to Baidu webmaster platform should know that Baidu has launched a reward component, which is mainly used to promote Baidu Wallet through visual inspection, and is still in the inside state until now. Zhang Ge tried to apply for the blog