JSON Cache Plugin
A Wordpress plugin to generate JSON file from a wordpress database.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 4367 days ago
Is JSON Cache Plugin abandoned?
Possibly abandoned (last update 4367 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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.
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.
Installation
- Upload
json-cacheto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- go to JSON CACHE and click Generate Cached Content (make sure your data folder is writeable)
Getting all posts
$json_cache = new JSONCache();
$jsonposts = $json_cache->getJsonData(‘posts’);
Getting all pages
$json_cache = new JSONCache();
$jsonpages = $json_cache->getJsonData(‘pages’);
Getting a specific post
$json_cache = new JSONCache();
$jsonpost = $json_cache->getJsonData(‘post_1’);
Settings
you can also add a custom image size:
$json_cache = new JSONCache();
$json_cache->add_image_size( ‘thibautdelille-full-width’);
Frequently Asked Questions
Review feed
Screenshots
Changelog
0.1
- save all pages, all posts and each individuals post in json file
- retrieve json data in the templates
- add custom images sizes