{"id":104692,"date":"2019-05-31T07:43:19","date_gmt":"2019-05-31T07:43:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/hamecache\/"},"modified":"2019-05-31T07:43:19","modified_gmt":"2019-05-31T07:43:19","slug":"hamecache","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/hamecache\/","author":1143171,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"5.2.24","requires":"5.0","requires_php":"5.6","requires_plugins":"","header_name":"Hamecache","header_author":"Hametuha","header_description":"A page cache plugin for WordPress by Hametuha. Cache stored on cloud front.","assets_banners_color":"fc9155","last_updated":"2019-05-31 07:43:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/hamecache\/","header_author_uri":"https:\/\/hametuha.co.jp","rating":0,"author_block_rating":0,"active_installs":30,"downloads":1442,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2098366","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"2098366","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"2098366","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"2098366","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"2098366","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"2098366","resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"You can purge caches for post from admin bar.","2":"Setting screen. Select post types with which page rules are matching."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[146,3882],"plugin_category":[52],"plugin_contributors":[146156,83237],"plugin_business_model":[],"class_list":["post-104692","plugin","type-plugin","status-publish","hentry","plugin_tags-cache","plugin_tags-cloudflare","plugin_category-performance","plugin_contributors-hametuha","plugin_contributors-takahashi_fumiki","plugin_committers-takahashi_fumiki"],"banners":{"banner":"https:\/\/ps.w.org\/hamecache\/assets\/banner-772x250.jpg?rev=2098366","banner_2x":"https:\/\/ps.w.org\/hamecache\/assets\/banner-1544x500.jpg?rev=2098366","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/hamecache\/assets\/icon-128x128.png?rev=2098366","icon_2x":"https:\/\/ps.w.org\/hamecache\/assets\/icon-256x256.png?rev=2098366","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/hamecache\/assets\/screenshot-1.png?rev=2098366","caption":"You can purge caches for post from admin bar."},{"src":"https:\/\/ps.w.org\/hamecache\/assets\/screenshot-2.png?rev=2098366","caption":"Setting screen. Select post types with which page rules are matching."}],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/cloudflare.com\">CloudFlare<\/a> is a popular CDN service. They caches static files like <code>.jpg<\/code>, <code>.css<\/code> or <code>.html<\/code>, but they doesn't cache dynamic pages generated by WordPress without <a href=\"https:\/\/www.cloudflare.com\/features-page-rules\/must-use-page-rules\/\">Page Rule<\/a>.<\/p>\n\n<p>Once Page Rules are set, for exmple, <code>https:\/\/examle.com\/article\/*<\/code>, every single page will be cached(of course, your permalink structure should be like <code>https:\/\/example.com\/article\/2019\/01\/01\/POST_ID<\/code>).<\/p>\n\n<p>This plugin <strong>hamecache<\/strong> provides cache control feature. If you update your article, hamecache automatically flush related caches  on cloudflare edge location.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>hamecache<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to 'Setting &gt; Cache Setting' and enter your email address and API key which you can get your profile page on <a href=\"https:\/\/dash.cloudflare.com\">cloudflare<\/a><\/li>\n<li>Select URL to be purged. Post type, top page, extra pages, and so on.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How can I contribute?<\/dt>\n<dd><p>We host our sources on <a href=\"https:\/\/github.com\/hametuha\/hamecache\">GitHub<\/a>, so please feel free to send <a href=\"https:\/\/github.com\/hametuha\/hamecache\/pulls\">PR<\/a> or to make <a href=\"https:\/\/github.com\/hametuha\/hamecache\/issues\">issues<\/a>.<\/p><\/dd>\n<dt>I have custom pages. How can I purge these URLs?<\/dt>\n<dd><p>You can use <code>hamecache_urls_to_be_purged<\/code> filter hook for them.<\/p>\n\n<pre>add_filter( 'hamecache_urls_to_be_purged', function( $urls, $post ) {\n    \/\/ Add your custom URL.\n    $urls[] = your_custom_link( $post );\n    return $urls;\n}, 10, 2 );<\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First releaes.<\/li>\n<\/ul>\n\n<h4>0.9.0<\/h4>\n\n<ul>\n<li>First package for plugin repository.<\/li>\n<\/ul>","raw_excerpt":"Page cache plugin by Hametuha. Use cloudflare for distribution.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/104692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=104692"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/takahashi_fumiki"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=104692"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=104692"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=104692"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=104692"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=104692"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=104692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}