AI助手支持GPT4.0
One of WordPress’ biggest bottlenecks is that it loads every single plugin that
WordPress的最大瓶颈之一是它会加载每个单独的插件,
is active on your WordPress installation on every single post/page no matter
无论每个帖子/页面上的WordPress安装都处于活动状态,
whether they are needed for that post/page or not.
该帖子/页面是否需要它们。
This plugin will allow you
此插件将允许您
to create simple rewrite rules to exclude a plugin or plugins from any URI
创建简单的重写规则以从任何URI中排除一个或多个插件
pattern match.
模式匹配。
This is a great way to reduce the memory footprint, SQL queries
这是减少内存占用的好方法,SQL查询
run at page load, load times, and improve site response speed.
在页面加载,加载时间运行并提高站点响应速度。 p>
This is NOT a normal WordPress plugin, but an mu (must use) plugin and requires
这不是普通的WordPress插件,而是 mu em>(必须使用)插件,需要special installation instructions.特殊安装说明。Please see the installation section for more请参阅安装部分以获取更多信息information.信息。 p>Requirements: PHP5+, WordPress 2.9.x+ 要求 strong>:PHP5 +,WordPress 2.9.x + p>
special installation instructions.
特殊安装说明。
Please see the installation section for more
请参阅安装部分以获取更多信息
information.
信息。 p>
Requirements: PHP5+, WordPress 2.9.x+
要求 strong>:PHP5 +,WordPress 2.9.x + p>
Create a /wp-content/mu-plugins/disable-plugins-rules directory if the plugin
/wp-content/mu-plugins/disable-plugins-rules
如果插件,则创建一个 / wp-content / mu-plugins / disable-plugins-rules code>目录has not created one for you already.尚未为您创建一个。Create a rules file for each site your为您的每个站点创建一个规则文件WordPress installation is running, naming the file after the host name forWordPress安装正在运行,将文件的主机名命名为the site followed by a .rules extension.该网站后跟 .rules code>扩展名。For example mywordpresssite.com.rules例如 mywordpresssite.com.rules code> would be a rules set for mywordpresssite.com.将是为 mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
/ wp-content / mu-plugins / disable-plugins-rules code>目录has not created one for you already.尚未为您创建一个。Create a rules file for each site your为您的每个站点创建一个规则文件WordPress installation is running, naming the file after the host name forWordPress安装正在运行,将文件的主机名命名为the site followed by a .rules extension.该网站后跟 .rules code>扩展名。For example mywordpresssite.com.rules例如 mywordpresssite.com.rules code> would be a rules set for mywordpresssite.com.将是为 mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
has not created one for you already.
尚未为您创建一个。
Create a rules file for each site your
为您的每个站点创建一个规则文件
WordPress installation is running, naming the file after the host name for
WordPress安装正在运行,将文件的主机名命名为
the site followed by a .rules extension.
.rules
该网站后跟 .rules code>扩展名。For example mywordpresssite.com.rules例如 mywordpresssite.com.rules code> would be a rules set for mywordpresssite.com.将是为 mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
.rules code>扩展名。For example mywordpresssite.com.rules例如 mywordpresssite.com.rules code> would be a rules set for mywordpresssite.com.将是为 mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
For example mywordpresssite.com.rules
mywordpresssite.com.rules
例如 mywordpresssite.com.rules code> would be a rules set for mywordpresssite.com.将是为 mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
mywordpresssite.com.rules code> would be a rules set for mywordpresssite.com.将是为 mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
would be a rules set for mywordpresssite.com.
mywordpresssite.com
将是为 mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
mywordpresssite.com code>设置的规则。 p>Populate your rules using regular expression pattern matches and plugin base使用正则表达式模式匹配和插件库填充规则names on each line of your rules file.规则文件每一行上的名称。For example, to exclude the Hello Dolly例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
Populate your rules using regular expression pattern matches and plugin base
使用正则表达式模式匹配和插件库填充规则
names on each line of your rules file.
规则文件每一行上的名称。
For example, to exclude the Hello Dolly
例如,排除 Hello Dolly em> and Akisment plugins from being loaded on your home page, you would write和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
and Akisment plugins from being loaded on your home page, you would write
和 Akisment em>插件加载到您的首页后,您将编写a rules file that looks like:规则文件如下: p># Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
a rules file that looks like:
规则文件如下: p>
# Prevent the Hello Dolly plugin from loading on the home page #阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet code> pre>You will need to write a rule for each plugin that will be excluded for each您将需要为每个插件编写一个规则,每个规则都将排除在外pattern that you wish to exclude that plugin from.您希望从中排除该插件的模式。 C style comments areC风格的注释是allowed in your rules file to document your rules.允许在规则文件中记录规则。 p>
#阻止将Hello Dolly插件加载到主页上^\/$ hello^ \ / $你好# Prevent the Akisment plugin from loading on the home page#阻止将Akisment插件加载到主页上^\/$ akismet^ \ / $ akismet
^\/$ hello
^ \ / $你好
# Prevent the Akisment plugin from loading on the home page
#阻止将Akisment插件加载到主页上
^\/$ akismet
^ \ / $ akismet
code> pre>
You will need to write a rule for each plugin that will be excluded for each
您将需要为每个插件编写一个规则,每个规则都将排除在外
pattern that you wish to exclude that plugin from.
您希望从中排除该插件的模式。
C style comments are
C风格的注释是
allowed in your rules file to document your rules.
允许在规则文件中记录规则。 p>
原文出处:http://www.sanshu.cn/a/11007.html
群主管理都是支付大佬