Use caching plug-in
Caching plug-ins are there to minimize the number of database requests or queries issued to the server per visit. The most commonly used images and resources are cached in visitors' browsers. Thus, rendering the page quickly next time they visit your blog.
It makes your page load at supersonic speed for returning visitors.
Using caching plug-ins can greatly decrease the number of queries supplied to your server. It does reduce the chances of HTTP error 522.
The best caching plugin for WordPress is W3 Total Cache. However, it is sad that it causes some server load issues in shared hosting. So I recommend WP Super Cache if you're running on a shared hosting service.
- Minimize the use of plug-ins especially visitor tracking plug-ins.
- Look out for minimalist themes.
- Take a look at the page speed suggestions and score.
- Consider upgrading to a better-dedicated server if you're encountering lots of server issues.
In spite of following all these things if you’re not getting rid of error 522, then I suggest you talk to your hosting service provider for further assistance.
If you are sure that this is due to mistake on CloudFlare’s end, I will recommend you to look at MaxCDN you get
The surefire formula for overcoming this error is reducing the database queries on every visit.
Hope this helps you solve CloudFlare HTTP error 522, if it did let others take advantage of this blog post and solve the issue.