{"id":28214,"date":"2014-03-06T23:31:27","date_gmt":"2014-03-06T23:31:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/json-cache\/"},"modified":"2014-03-06T23:32:51","modified_gmt":"2014-03-06T23:32:51","slug":"json-cache","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/json-cache\/","author":13704575,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"","stable_tag":"trunk","tested":"3.4.2","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"JSON Cache","header_author":"Thibaut Delille","header_description":"","assets_banners_color":"","last_updated":"2014-03-06 23:32:51","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.thibautdelille.com\/","header_plugin_uri":"http:\/\/www.thibautdelille.com","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1580,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","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":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Menu Setting of JSON Cache to generate the cache. assets\/screenshot-1.png"}},"plugin_section":[],"plugin_tags":[146,1118,247],"plugin_category":[52,54],"plugin_contributors":[126965],"plugin_business_model":[],"class_list":["post-28214","plugin","type-plugin","status-closed","hentry","plugin_tags-cache","plugin_tags-json","plugin_tags-performance","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-thibautdelille","plugin_committers-thibautdelille"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/json-cache.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Wordpress can be sometimes slow and make a lot of call to the database when you want to display a lot of posts with featured images in on beautifull long scrolling page. I a case like that you need to hit the database to get the featured image of every post.<\/p>\n\n<p>JSON Cache fix this issue. it allow you to generate a json file that content all the informations of a post so the user when visiting your site just need to open the json file.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>json-cache<\/code> 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 JSON CACHE and click Generate Cached Content (make sure your data folder is writeable)<\/li>\n<\/ol>\n\n<h4>Getting all posts<\/h4>\n\n<p>$json_cache = new JSONCache();\n$jsonposts = $json_cache-&gt;getJsonData('posts');<\/p>\n\n<h4>Getting all pages<\/h4>\n\n<p>$json_cache = new JSONCache();\n$jsonpages = $json_cache-&gt;getJsonData('pages');<\/p>\n\n<h4>Getting a specific post<\/h4>\n\n<p>$json_cache = new JSONCache();\n$jsonpost = $json_cache-&gt;getJsonData('post_1');<\/p>\n\n<h4>Settings<\/h4>\n\n<p>you can also add a custom image size:\n$json_cache = new JSONCache();\n$json_cache-&gt;add_image_size( 'thibautdelille-full-width');<\/p>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>save all pages, all posts and each individuals post in json file<\/li>\n<li>retrieve json data in the templates<\/li>\n<li>add custom images sizes<\/li>\n<\/ul>","raw_excerpt":"A Wordpress plugin to generate JSON file from a wordpress database.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/28214","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=28214"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thibautdelille"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=28214"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=28214"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=28214"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=28214"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=28214"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=28214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}