问题原文
原帖链接 · Mourin · CC BY-SA 4.0
My WordPress site in cPanel is serving the admin-ajax.php file which is wasting CPU resources. How can I solve this problem? Should I use this in my robots.txt file or not?
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
社区高分解答
原帖链接 · Bronwyn V · CC BY-SA 3.0
This file is often used front-end by themes and plugins. It was changed in WordPress robots.txt file a couple of years ago to allow crawling for this reason, after an issue with google being unable to crawl it.
The WP Core ticket thread can be found here and offers further information https://core.trac.wordpress.org/ticket/33156
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
