{"id":40176,"date":"2015-11-17T00:06:01","date_gmt":"2015-11-17T00:06:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wprestcache\/"},"modified":"2015-11-17T00:06:01","modified_gmt":"2015-11-17T00:06:01","slug":"wprestcache","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wprestcache\/","author":14644160,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"4.3.34","requires":"4.3.1","requires_php":"","requires_plugins":"","header_name":"WPRestCache","header_author":"Lars Jensen","header_description":"","assets_banners_color":"","last_updated":"2015-11-17 00:06:01","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/exenova.dk\/","header_plugin_uri":"https:\/\/github.com\/larjen\/WPRestCache","header_author_uri":"http:\/\/exenova.dk\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":891,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2133],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-40176","plugin","type-plugin","status-publish","hentry","plugin_tags-toggle","plugin_committers-larjen"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wprestcache.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Wordpress plugin that provides an infinite cache in front of a REST API. This would be useful for sites that are static in nature and seldom updates, as polling the native REST API in WordPress can be somewhat slow.<\/p>\n <p>From within the plugin, there is an option to deploy a cache in front of a REST API. When you deploy it, be warned that the folder \"rest-api\" will be created in the root of your webserver.<\/p>\n <p>You can then request the REST-API like this:<\/p>\n <pre><code>http:\/\/www.example.com\/rest-api\/v1\/posts?page=1&amp;per_page=12&amp;search=query&amp;tags=tag1+tag2 http:\/\/www.example.com\/rest-api\/v1\/tag\/?_jsonp=angular.callbacks._1&amp;tag_name=tag1 <\/code><\/pre>\n <p>Since these requests are infinitely cached, you can schedule an optional wipe of the cache which will occur 5 minutes after last post alteration.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download to your Wordpress plugin folder and unzip.<\/li>\n<li>Activate plugin.<\/li>\n<li>Deploy the cache, and change the settings in the control panel to your liking.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Do I use this at my own risk?<\/h4>\n <p>Yes.<\/p>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n <ul>\n<li>Uploaded plugin.<\/li>\n<\/ul>","raw_excerpt":"Wordpress plugin that provides an infinite cache in front of a REST API.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/40176","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=40176"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/larjen"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=40176"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=40176"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=40176"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=40176"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=40176"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=40176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}