{"id":53952,"date":"2017-01-29T14:04:50","date_gmt":"2017-01-29T14:04:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/full-site-cache-cf\/"},"modified":"2017-02-27T05:49:00","modified_gmt":"2017-02-27T05:49:00","slug":"full-site-cache-cf","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/full-site-cache-cf\/","author":14810228,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.0.2","stable_tag":"0.0.2","tested":"4.7.33","requires":"4.4","requires_php":"","requires_plugins":"","header_name":"Full Site Cache for CloudFront","header_author":"ZE3kr","header_description":"","assets_banners_color":"","last_updated":"2017-02-27 05:49:00","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/tlo.xyz\/donate\/","header_plugin_uri":"","header_author_uri":"https:\/\/ze3kr.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1724,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"0.0.1":"<p>Published the first version<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.1","0.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[146,3875,1452,247,794],"plugin_category":[52,54],"plugin_contributors":[90784],"plugin_business_model":[],"class_list":["post-53952","plugin","type-plugin","status-publish","hentry","plugin_tags-cache","plugin_tags-cloudfront","plugin_tags-optimize","plugin_tags-performance","plugin_tags-speed","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-ze3kr","plugin_committers-ze3kr"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/full-site-cache-cf.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>If you blog are using CloudFront on the main WordPress domain (e.g. www.example.com), and you want to cache HTML page for not logged in user. You could set a long \"Default TTL\" for these HTML pages if the cache could invalidate automatically.<\/p>\n\n<h4>Invalidation behaviors<\/h4>\n\n<ul>\n<li>Invalidate the whole cache when a new post published<\/li>\n<li>Invalidate a post page when a post updated<\/li>\n<li>Invalidate a post page if have any comment has changed on that page<\/li>\n<li>Each invalidation has a minimum interval of 10 minutes<\/li>\n<\/ul>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>PHP 5.4+<\/li>\n<li>Wordpress 4.4+<\/li>\n<li>A CloudFront account and AWS Access Key and Secret Key to access <a href=\"https:\/\/tlo.xyz\/create-cloudfront-distribution-for-wordpress\/\">CloudFront distribution<\/a>.<\/li>\n<\/ul>\n\n<h4>Recommendations<\/h4>\n\n<ul>\n<li>Offload CSS, JS and medias file to another domain with a different distribution, because this plugin will invalidate the whole cache when updating the post.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>First, you need to <a href=\"https:\/\/tlo.xyz\/create-cloudfront-distribution-for-wordpress\/\">use CloudFront on your WordPress site<\/a>.<\/p>\n\n<p>Add the configuration code to your <code>wp-config.php<\/code> file <strong>above<\/strong> the line reading <code>\/* That\u2019s all, stop editing! Happy blogging. *\/<\/code>.<\/p>\n\n<p>Example configuration:<\/p>\n\n<pre><code>$tlo_cf_id[1] = 'DISTRIBUTION_ID';\ndefine( 'AWS_ACCESS_KEY_ID', '********************' );\ndefine( 'AWS_SECRET_ACCESS_KEY', '****************************************' );\n$wp_rich_edit = true; \/\/ CloudFront will remove user-agent header, so if you want to have Visual Editor, keep this line.\n<\/code><\/pre>\n\n<p>This plugin supports multisite, just replace 1 in the <code>$tlo_cf_id[]<\/code> to the blog id.<\/p>\n\n<!--section=changelog-->\n<h4>0.0.2<\/h4>\n\n<ul>\n<li>Fixed for comment approval.<\/li>\n<li>Changed the invalidate behavior.<\/li>\n<\/ul>\n\n<h4>0.0.1<\/h4>\n\n<p>Published the first version<\/p>","raw_excerpt":"This plugin can invalidate the cache automatically if you are using full site CDN.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/53952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=53952"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ze3kr"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=53952"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=53952"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=53952"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=53952"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=53952"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=53952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}