Hello,
Im experiencing a lot of 502 and 504 errors. Our site is westfaironline.com. Back in October I was told to update the theme to its latest version. Which I did, but we are still having the same issues. I contacted our hosting provider and this is what they are telling me:
We have identified high admin-ajax.php utilization originating from the westfairsite install. Currently there is excessive ajax usage recently which is affecting the servers CPU Usage and affecting other users on the Shared server environment.
/wp-admin/admin-ajax.php?td_theme_name=Newsmag&v=5.1
Because hits to admin-ajax.php can’t be cached, they tend to utilize a lot of the server’s resources. Therefore, you will want to contact your developer in order to reduce this usage so that the site performs better.
There are also a large amount of requests from the same IPs and user agents hitting the site at the moment. If these are legitimate, we suggest placing the site behind our Advanced Network/CloudFlare directly, and/or taking steps to minimize these hits either with a robots.txt crawl delay, or a code delay if these are part of a service. If they are not expected, we can assist with implementing blocks if you would like.
75333 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0
60978 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
35467 Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)
24205 Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1
19987 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36 Edg/96.0.1054.53
19257 Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)
18804 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
17663 Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1
17001 Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)
15278 Mozilla/5.0 (iPhone; CPU iPhone OS 14_8_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1
14606 Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)
12779 Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)
11527 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
10147 Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
9524 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
9235 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.141 Safari/537.36
8482 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36
8374 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
8071 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
7996 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.136 Safari/537.36
Hi,
Usually, the 502 and 504 are related to Gateway. If you are using a share host, then most probably the resources that are allocate per website are small and this can be the problem. Using our theme you can set as many blocks you want and for each of theme you can set filters. Therefore as many blocks you set those will make ajax request to database for display/filter the posts. If you set only 1-2 blocks, then besides on the WordPress request will be another 1-2 ajax request.
Thank you!