AI助手支持GPT4.0
“Cache control by Cacholong” plugin automates purging of Nginx Pagespeed cache and Nginx FastCGI cache on your Nginx server(s).
“由Cacholong进行的缓存控制”插件可自动清除Nginx服务器上的Nginx Pagespeed缓存和Nginx FastCGI缓存。
It is a backend plugin that is able to:
这是一个后端插件,可以: p>
ul>
This plugin will work with default and custom post types.
此插件将使用默认和自定义帖子类型。
It will purge on a save, regular update, quick edit update, slug change, delete and undelete.
它将清除保存,定期更新,快速编辑更新,更改条目,删除和取消删除。
The user is informed with one or more messages.
用户会收到一条或多则消息。
There are a few caveats:
有一些警告: p>
Those messages will be shown on the next request.
这些消息将在下一个请求中显示。
li>
It is possible to purge with WordPress cronjobs.
可以清除WordPress cronjobs。
Adjust the ‘Cronjob settings’ to perform a daily purge of caches.
调整“ Cronjob设置”以每天清除缓存。 p>
You can also purge items manually.
您还可以手动清除项目。
Go to the WordPress dashboard and navigate to:
转到WordPress仪表板并导航至: p>
See hosts.json section for more details.
有关更多详细信息,请参见hosts.json部分。
Possible to purge post url (default), home page, all connected WordPress categories or all caches.
可以清除发布网址(默认),主页,所有已连接的WordPress类别或所有缓存。 li>
Will fallback to 00:00 when wrong format is given.
格式错误时将回退至00:00。 li>
Hosts.json is a JSON file with information about one or more servers for this WordPress installation.
Hosts.json是一个JSON文件,其中包含有关此WordPress安装的一台或多台服务器的信息。
Remember that this file must contain information about all servers, including this one.
请记住,此文件必须包含有关所有服务器的信息,包括该服务器。
Default path is: /uploads/cachelong-cache-control/hosts.json.
默认路径为:/uploads/cachelong-cache-control/hosts.json。 p>
Here is an example of a hosts.json file:
这是hosts.json文件的示例: p>
{"servers": {“服务器”: [ [ {"name": "server1", "ip": "127.0.0.1", "pagespeed": true, "fastcgi": false}, {“ name”:“ server1”,“ ip”:“ 127.0.0.1”,“ pagespeed”:true,“ fastcgi”:false}, {"name": "server2", "ip": "127.0.0.2", "pagespeed": false, "fastcgi": true}, {“ name”:“ server2”,“ ip”:“ 127.0.0.2”,“ pagespeed”:false,“ fastcgi”:true}, ]]}} code> pre>Each line contains information about one server.每一行包含有关一台服务器的信息。Parameters:参数: p>name string Name of host, something to identify this server. name字符串主机名,用于标识此服务器。ip string IP address of server or full url.ip字符串服务器或完整URL的IP地址。Format: scheme://host:port/path格式:scheme:// host:port / path pagespeed bool Server uses Nginx Pagespeed (true) or not (false)pagespeed bool Server使用Nginx Pagespeed(真)还是不使用(假)fastcgi bool Server user Nginx FastCGI (true) or not (false)fastcgi bool服务器用户Nginx FastCGI(true)或不是(false) p>When there is no hosts.json or the path is invalid, this plugin assumes the following:当没有hosts.json或路径无效时,此插件将假定以下内容: p>{"servers": {“服务器”: [ [ {"name": "localhost", "ip": "127.0.0.1", "pagespeed": true, "fastcgi": true} {“ name”:“ localhost”,“ ip”:“ 127.0.0.1”,“ pagespeed”:true,“ fastcgi”:true} ]]}} code> pre>How does it work它如何工作 h4>“Cache control by Cacholong” empties partial or full cache for Nginx Pagespeed and FastCGI cache.“ Cacholong的缓存控制”清空Nginx Pagespeed和FastCGI缓存的部分或全部缓存。 WordPress HTTP API is used to make (post) request toWordPress HTTP API用于向以下对象发出(发布)请求specific urls to trigger purges.触发清除的特定网址。Based on the http header responses this plugin determines if a purge is successful or not.根据http标头响应,此插件确定清除是否成功。The user is informed with messages, which are loaded after a purge and page refresh.消息将通知用户,这些消息将在清除和页面刷新后加载。 p>There are several settings to tweak purging, see Settings > Cache control.有一些设置可以进行清除,请参见“设置”>“缓存控制”。 p>Debug调试 h4>Plugin will only log information when WP_DEBUG is true (can be set in wp-config.php).仅当WP_DEBUG为true(可以在wp-config.php中设置)时,插件才会记录信息。 p>
{“服务器”: [ [ {"name": "server1", "ip": "127.0.0.1", "pagespeed": true, "fastcgi": false}, {“ name”:“ server1”,“ ip”:“ 127.0.0.1”,“ pagespeed”:true,“ fastcgi”:false}, {"name": "server2", "ip": "127.0.0.2", "pagespeed": false, "fastcgi": true}, {“ name”:“ server2”,“ ip”:“ 127.0.0.2”,“ pagespeed”:false,“ fastcgi”:true}, ]]}}
[
{"name": "server1", "ip": "127.0.0.1", "pagespeed": true, "fastcgi": false},
{“ name”:“ server1”,“ ip”:“ 127.0.0.1”,“ pagespeed”:true,“ fastcgi”:false},
{"name": "server2", "ip": "127.0.0.2", "pagespeed": false, "fastcgi": true},
{“ name”:“ server2”,“ ip”:“ 127.0.0.2”,“ pagespeed”:false,“ fastcgi”:true},
]
}
code> pre>
Each line contains information about one server.
每一行包含有关一台服务器的信息。
Parameters:
参数: p>
name string Name of host, something to identify this server.
name字符串主机名,用于标识此服务器。
ip string IP address of server or full url.
ip字符串服务器或完整URL的IP地址。
Format: scheme://host:port/path
格式:scheme:// host:port / path
pagespeed bool Server uses Nginx Pagespeed (true) or not (false)
pagespeed bool Server使用Nginx Pagespeed(真)还是不使用(假)
fastcgi bool Server user Nginx FastCGI (true) or not (false)
fastcgi bool服务器用户Nginx FastCGI(true)或不是(false) p>
When there is no hosts.json or the path is invalid, this plugin assumes the following:
当没有hosts.json或路径无效时,此插件将假定以下内容: p>
{"servers": {“服务器”: [ [ {"name": "localhost", "ip": "127.0.0.1", "pagespeed": true, "fastcgi": true} {“ name”:“ localhost”,“ ip”:“ 127.0.0.1”,“ pagespeed”:true,“ fastcgi”:true} ]]}} code> pre>How does it work它如何工作 h4>“Cache control by Cacholong” empties partial or full cache for Nginx Pagespeed and FastCGI cache.“ Cacholong的缓存控制”清空Nginx Pagespeed和FastCGI缓存的部分或全部缓存。 WordPress HTTP API is used to make (post) request toWordPress HTTP API用于向以下对象发出(发布)请求specific urls to trigger purges.触发清除的特定网址。Based on the http header responses this plugin determines if a purge is successful or not.根据http标头响应,此插件确定清除是否成功。The user is informed with messages, which are loaded after a purge and page refresh.消息将通知用户,这些消息将在清除和页面刷新后加载。 p>There are several settings to tweak purging, see Settings > Cache control.有一些设置可以进行清除,请参见“设置”>“缓存控制”。 p>Debug调试 h4>Plugin will only log information when WP_DEBUG is true (can be set in wp-config.php).仅当WP_DEBUG为true(可以在wp-config.php中设置)时,插件才会记录信息。 p>
{“服务器”: [ [ {"name": "localhost", "ip": "127.0.0.1", "pagespeed": true, "fastcgi": true} {“ name”:“ localhost”,“ ip”:“ 127.0.0.1”,“ pagespeed”:true,“ fastcgi”:true} ]]}}
{"name": "localhost", "ip": "127.0.0.1", "pagespeed": true, "fastcgi": true}
{“ name”:“ localhost”,“ ip”:“ 127.0.0.1”,“ pagespeed”:true,“ fastcgi”:true}
“Cache control by Cacholong” empties partial or full cache for Nginx Pagespeed and FastCGI cache.
“ Cacholong的缓存控制”清空Nginx Pagespeed和FastCGI缓存的部分或全部缓存。
WordPress HTTP API is used to make (post) request to
WordPress HTTP API用于向以下对象发出(发布)请求
specific urls to trigger purges.
触发清除的特定网址。
Based on the http header responses this plugin determines if a purge is successful or not.
根据http标头响应,此插件确定清除是否成功。
The user is informed with messages, which are loaded after a purge and page refresh.
消息将通知用户,这些消息将在清除和页面刷新后加载。 p>
There are several settings to tweak purging, see Settings > Cache control.
有一些设置可以进行清除,请参见“设置”>“缓存控制”。 p>
Plugin will only log information when WP_DEBUG is true (can be set in wp-config.php).
仅当WP_DEBUG为true(可以在wp-config.php中设置)时,插件才会记录信息。 p>
Nginx server with fastcgi_cache enabled
已启用fastcgi_cache的Nginx服务器 p>
Within the configuration of Nginx the variable $_SERVER[‘CC_NGINX_FASTCGI_CACHE_PATH’] must be provided containing the correct NGINX FASTCGI cache path.
在Nginx的配置中,必须提供变量$ _SERVER [‘CC_NGINX_FASTCGI_CACHE_PATH’],其中包含正确的NGINX FASTCGI缓存路径。
For documentation regarding Nginx setup please follow this link http:/ginx.org/en/docs/有关Nginx设置的文档,请访问此链接 http:/ginx.org/en/docs/ httpgx_http_fastcgi_module.html.http / ngx_http_fastcgi_module.html 。 p>
有关Nginx设置的文档,请访问此链接 http:/ginx.org/en/docs/ httpgx_http_fastcgi_module.html.
httpgx_http_fastcgi_module.html
http / ngx_http_fastcgi_module.html
File contains information about hosts and which caches are active.
文件包含有关主机以及哪些高速缓存处于活动状态的信息。
When not available, plugin assumes localhost with all caches active.
当不可用时,插件将假定localhost处于活动状态。
ol>
Although our updates are thoroughly tested, make a backup of your website (files and database) before you install an update.
尽管我们的更新已经过全面测试,但是在安装更新之前,请对您的网站(文件和数据库)进行备份。
Just to be sure!
只是为了确定! p>
原文出处:http://www.sanshu.cn/a/6114.html
群主管理都是支付大佬