AI助手支持GPT4.0
This is simple plugin that clear all cloudfront cache if you publish posts.
这是一个简单的插件,可以在发布帖子时清除所有Cloudfront缓存。
You can easy use CloudFront in front of WordPress.
您可以在WordPress之前轻松使用CloudFront。 p>
wp_is_mobile()
wp_is_mobile()
Check device viewer type by CloudFront header.
通过CloudFront标头检查设备查看器类型。
Now supports HTTP_CLOUDFRONT_IS_MOBILE_VIEWER and HTTP_CLOUDFRONT_IS_TABLET_VIEWER.
HTTP_CLOUDFRONT_IS_MOBILE_VIEWER
HTTP_CLOUDFRONT_IS_TABLET_VIEWER
现在支持 HTTP_CLOUDFRONT_IS_MOBILE_VIEWER code>和 HTTP_CLOUDFRONT_IS_TABLET_VIEWER code>。 p>
HTTP_CLOUDFRONT_IS_MOBILE_VIEWER code>和 HTTP_CLOUDFRONT_IS_TABLET_VIEWER code>。 p>
HTTP_CLOUDFRONT_IS_TABLET_VIEWER code>。 p>
li>
preview url
预览网址
In preview page, plugin add post_date query to avoid CloudFront cache.
post_date
在预览页面中,插件添加 post_date code>查询以避免CloudFront缓存。And set wordpress_loginuser_last_visit cookie for avoid CloudFront cache too.并设置 wordpress_loginuser_last_visit code> cookie以避免CloudFront缓存。 p>
post_date code>查询以避免CloudFront缓存。And set wordpress_loginuser_last_visit cookie for avoid CloudFront cache too.并设置 wordpress_loginuser_last_visit code> cookie以避免CloudFront缓存。 p>
And set wordpress_loginuser_last_visit cookie for avoid CloudFront cache too.
wordpress_loginuser_last_visit
并设置 wordpress_loginuser_last_visit code> cookie以避免CloudFront缓存。 p>
wordpress_loginuser_last_visit code> cookie以避免CloudFront缓存。 p>
ul>
The wordpress_loginuser_last_visit cookie will be removed if user sign out.
如果用户退出,则将删除 wordpress_loginuser_last_visit code> cookie。 p>Invalidation(Clear Cache) Page URL无效(清除缓存)页面网址 h4>This plugin send following page url to CloudFront Invalidation API.此插件将以下页面网址发送到CloudFront Invalidation API。 p>TOP page URL TOP页面网址 li>Published Post Page URL发布的帖子页面URL li>Category Archive Page URL类别存档页面URL li> ul>AWS IAM Policy Example AWS IAM策略示例 h3>{ { "Version": "2012-10-17", “ Version”:“ 2012-10-17”, "Statement": [ “声明”:[ { { "Action": [ “动作”:[ "cloudfront:GetDistribution", “ cloudfront:GetDistribution”, "cloudfront:ListInvalidations", “ cloudfront:ListInvalidations”, "cloudfront:GetStreamingDistribution", “ cloudfront:GetStreamingDistribution”, "cloudfront:GetDistributionConfig", “ cloudfront:GetDistributionConfig”, "cloudfront:GetInvalidation", “ cloudfront:GetInvalidation”, "cloudfront:CreateInvalidation" “ cloudfront:CreateInvalidation” ], ], "Effect": "Allow", “效果”:“允许”, "Resource": "*" “资源”:“ *” } } ]]}} code> pre>Adding your configuration through env vars通过环境变量添加配置 h3>The plugin can be configured by defining the following variables:可以通过定义以下变量来配置插件: p>AWS_ACCESS_KEY_ID AWS_ACCESS_KEY_ID code> li>AWS_SECRET_ACCESS_KEY AWS_SECRET_ACCESS_KEY code> li>C3_DISTRIBUTION_ID C3_DISTRIBUTION_ID code> li> ul>You can put these variables like the code into the wp-config.php您可以将这些变量(如代码)放入wp-config.php p>php phpdefine( 'AWS_ACCESS_KEY_ID', '' );define('AWS_ACCESS_KEY_ID','');define( 'AWS_SECRET_ACCESS_KEY', '' );define('AWS_SECRET_ACCESS_KEY','');define( 'C3_DISTRIBUTION_ID', '' );define('C3_DISTRIBUTION_ID',''); code> pre>Cookie饼干 h3>This plugin set a Cookie named wordpress_loginuser_last_visit to the user.此插件为用户设置了一个名为 wordpress_loginuser_last_visit code>的Cookie。It prevents CDN caching when the user is previewing his posts or contents.当用户预览其帖子或内容时,它可以防止CDN缓存。Once logging out from Dashboard, plugin removes this cookie from user.从仪表板注销后,插件将从用户中删除此Cookie。 p>
wordpress_loginuser_last_visit code> cookie。 p>Invalidation(Clear Cache) Page URL无效(清除缓存)页面网址 h4>This plugin send following page url to CloudFront Invalidation API.此插件将以下页面网址发送到CloudFront Invalidation API。 p>TOP page URL TOP页面网址 li>Published Post Page URL发布的帖子页面URL li>Category Archive Page URL类别存档页面URL li> ul>AWS IAM Policy Example AWS IAM策略示例 h3>{ { "Version": "2012-10-17", “ Version”:“ 2012-10-17”, "Statement": [ “声明”:[ { { "Action": [ “动作”:[ "cloudfront:GetDistribution", “ cloudfront:GetDistribution”, "cloudfront:ListInvalidations", “ cloudfront:ListInvalidations”, "cloudfront:GetStreamingDistribution", “ cloudfront:GetStreamingDistribution”, "cloudfront:GetDistributionConfig", “ cloudfront:GetDistributionConfig”, "cloudfront:GetInvalidation", “ cloudfront:GetInvalidation”, "cloudfront:CreateInvalidation" “ cloudfront:CreateInvalidation” ], ], "Effect": "Allow", “效果”:“允许”, "Resource": "*" “资源”:“ *” } } ]]}} code> pre>Adding your configuration through env vars通过环境变量添加配置 h3>The plugin can be configured by defining the following variables:可以通过定义以下变量来配置插件: p>AWS_ACCESS_KEY_ID AWS_ACCESS_KEY_ID code> li>AWS_SECRET_ACCESS_KEY AWS_SECRET_ACCESS_KEY code> li>C3_DISTRIBUTION_ID C3_DISTRIBUTION_ID code> li> ul>You can put these variables like the code into the wp-config.php您可以将这些变量(如代码)放入wp-config.php p>php phpdefine( 'AWS_ACCESS_KEY_ID', '' );define('AWS_ACCESS_KEY_ID','');define( 'AWS_SECRET_ACCESS_KEY', '' );define('AWS_SECRET_ACCESS_KEY','');define( 'C3_DISTRIBUTION_ID', '' );define('C3_DISTRIBUTION_ID',''); code> pre>Cookie饼干 h3>This plugin set a Cookie named wordpress_loginuser_last_visit to the user.此插件为用户设置了一个名为 wordpress_loginuser_last_visit code>的Cookie。It prevents CDN caching when the user is previewing his posts or contents.当用户预览其帖子或内容时,它可以防止CDN缓存。Once logging out from Dashboard, plugin removes this cookie from user.从仪表板注销后,插件将从用户中删除此Cookie。 p>
This plugin send following page url to CloudFront Invalidation API.
此插件将以下页面网址发送到CloudFront Invalidation API。 p>
{ { "Version": "2012-10-17", “ Version”:“ 2012-10-17”, "Statement": [ “声明”:[ { { "Action": [ “动作”:[ "cloudfront:GetDistribution", “ cloudfront:GetDistribution”, "cloudfront:ListInvalidations", “ cloudfront:ListInvalidations”, "cloudfront:GetStreamingDistribution", “ cloudfront:GetStreamingDistribution”, "cloudfront:GetDistributionConfig", “ cloudfront:GetDistributionConfig”, "cloudfront:GetInvalidation", “ cloudfront:GetInvalidation”, "cloudfront:CreateInvalidation" “ cloudfront:CreateInvalidation” ], ], "Effect": "Allow", “效果”:“允许”, "Resource": "*" “资源”:“ *” } } ]]}} code> pre>Adding your configuration through env vars通过环境变量添加配置 h3>The plugin can be configured by defining the following variables:可以通过定义以下变量来配置插件: p>AWS_ACCESS_KEY_ID AWS_ACCESS_KEY_ID code> li>AWS_SECRET_ACCESS_KEY AWS_SECRET_ACCESS_KEY code> li>C3_DISTRIBUTION_ID C3_DISTRIBUTION_ID code> li> ul>You can put these variables like the code into the wp-config.php您可以将这些变量(如代码)放入wp-config.php p>php phpdefine( 'AWS_ACCESS_KEY_ID', '' );define('AWS_ACCESS_KEY_ID','');define( 'AWS_SECRET_ACCESS_KEY', '' );define('AWS_SECRET_ACCESS_KEY','');define( 'C3_DISTRIBUTION_ID', '' );define('C3_DISTRIBUTION_ID',''); code> pre>Cookie饼干 h3>This plugin set a Cookie named wordpress_loginuser_last_visit to the user.此插件为用户设置了一个名为 wordpress_loginuser_last_visit code>的Cookie。It prevents CDN caching when the user is previewing his posts or contents.当用户预览其帖子或内容时,它可以防止CDN缓存。Once logging out from Dashboard, plugin removes this cookie from user.从仪表板注销后,插件将从用户中删除此Cookie。 p>
{ "Version": "2012-10-17", “ Version”:“ 2012-10-17”, "Statement": [ “声明”:[ { { "Action": [ “动作”:[ "cloudfront:GetDistribution", “ cloudfront:GetDistribution”, "cloudfront:ListInvalidations", “ cloudfront:ListInvalidations”, "cloudfront:GetStreamingDistribution", “ cloudfront:GetStreamingDistribution”, "cloudfront:GetDistributionConfig", “ cloudfront:GetDistributionConfig”, "cloudfront:GetInvalidation", “ cloudfront:GetInvalidation”, "cloudfront:CreateInvalidation" “ cloudfront:CreateInvalidation” ], ], "Effect": "Allow", “效果”:“允许”, "Resource": "*" “资源”:“ *” } } ]]}}
"Version": "2012-10-17",
“ Version”:“ 2012-10-17”,
"Statement": [
“声明”:[
{
"Action": [
“动作”:[
"cloudfront:GetDistribution",
“ cloudfront:GetDistribution”,
"cloudfront:ListInvalidations",
“ cloudfront:ListInvalidations”,
"cloudfront:GetStreamingDistribution",
“ cloudfront:GetStreamingDistribution”,
"cloudfront:GetDistributionConfig",
“ cloudfront:GetDistributionConfig”,
"cloudfront:GetInvalidation",
“ cloudfront:GetInvalidation”,
"cloudfront:CreateInvalidation"
“ cloudfront:CreateInvalidation”
],
],
"Effect": "Allow",
“效果”:“允许”,
"Resource": "*"
“资源”:“ *”
}
]
code> pre>
The plugin can be configured by defining the following variables:
可以通过定义以下变量来配置插件: p>
AWS_ACCESS_KEY_ID
AWS_ACCESS_KEY_ID code> li>AWS_SECRET_ACCESS_KEY AWS_SECRET_ACCESS_KEY code> li>C3_DISTRIBUTION_ID C3_DISTRIBUTION_ID code> li>
AWS_SECRET_ACCESS_KEY
AWS_SECRET_ACCESS_KEY code> li>C3_DISTRIBUTION_ID C3_DISTRIBUTION_ID code> li>
C3_DISTRIBUTION_ID
C3_DISTRIBUTION_ID code> li>
You can put these variables like the code into the wp-config.php
您可以将这些变量(如代码)放入wp-config.php p>
php phpdefine( 'AWS_ACCESS_KEY_ID', '' );define('AWS_ACCESS_KEY_ID','');define( 'AWS_SECRET_ACCESS_KEY', '' );define('AWS_SECRET_ACCESS_KEY','');define( 'C3_DISTRIBUTION_ID', '' );define('C3_DISTRIBUTION_ID',''); code> pre>Cookie饼干 h3>This plugin set a Cookie named wordpress_loginuser_last_visit to the user.此插件为用户设置了一个名为 wordpress_loginuser_last_visit code>的Cookie。It prevents CDN caching when the user is previewing his posts or contents.当用户预览其帖子或内容时,它可以防止CDN缓存。Once logging out from Dashboard, plugin removes this cookie from user.从仪表板注销后,插件将从用户中删除此Cookie。 p>
phpdefine( 'AWS_ACCESS_KEY_ID', '' );define('AWS_ACCESS_KEY_ID','');define( 'AWS_SECRET_ACCESS_KEY', '' );define('AWS_SECRET_ACCESS_KEY','');define( 'C3_DISTRIBUTION_ID', '' );define('C3_DISTRIBUTION_ID','');
define( 'AWS_ACCESS_KEY_ID', '' );
define('AWS_ACCESS_KEY_ID','');
define( 'AWS_SECRET_ACCESS_KEY', '' );
define('AWS_SECRET_ACCESS_KEY','');
define( 'C3_DISTRIBUTION_ID', '' );
define('C3_DISTRIBUTION_ID','');
This plugin set a Cookie named wordpress_loginuser_last_visit to the user.
此插件为用户设置了一个名为 wordpress_loginuser_last_visit code>的Cookie。It prevents CDN caching when the user is previewing his posts or contents.当用户预览其帖子或内容时,它可以防止CDN缓存。Once logging out from Dashboard, plugin removes this cookie from user.从仪表板注销后,插件将从用户中删除此Cookie。 p>
wordpress_loginuser_last_visit code>的Cookie。It prevents CDN caching when the user is previewing his posts or contents.当用户预览其帖子或内容时,它可以防止CDN缓存。Once logging out from Dashboard, plugin removes this cookie from user.从仪表板注销后,插件将从用户中删除此Cookie。 p>
It prevents CDN caching when the user is previewing his posts or contents.
当用户预览其帖子或内容时,它可以防止CDN缓存。
Once logging out from Dashboard, plugin removes this cookie from user.
从仪表板注销后,插件将从用户中删除此Cookie。 p>
ol>
原文出处:http://www.sanshu.cn/a/6069.html
群主管理都是支付大佬