{"id":65669,"date":"2017-06-16T14:07:35","date_gmt":"2017-06-16T14:07:35","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/shortcache\/"},"modified":"2018-02-08T12:06:51","modified_gmt":"2018-02-08T12:06:51","slug":"shortcache","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/shortcache\/","author":6754519,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.0","stable_tag":"0.2.0","tested":"4.9.29","requires":"4.7","requires_php":"","requires_plugins":"","header_name":"ShortCache","header_author":"Ar\u016bnas Liuiza","header_description":"","assets_banners_color":"7b7771","last_updated":"2018-02-08 12:06:51","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/arunas.co#coffee","header_plugin_uri":"http:\/\/arunas.co","header_author_uri":"http:\/\/arunas.co","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1331,"num_ratings":1,"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":"1"},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":"1679929","resolution":"","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1679929","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1679929","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1679938","resolution":"1","location":"assets"}},"screenshots":{"1":"Settings screen."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[146,144,80,142619],"plugin_category":[43,52],"plugin_contributors":[84398],"plugin_business_model":[],"class_list":["post-65669","plugin","type-plugin","status-closed","hentry","plugin_tags-cache","plugin_tags-caching","plugin_tags-shortcode","plugin_tags-shortcode-caching","plugin_category-customization","plugin_category-performance","plugin_contributors-ideag","plugin_committers-ideag"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/shortcache\/assets\/icon.svg?rev=1679929","icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/shortcache_7b7771.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/shortcache\/assets\/screenshot-1.png?rev=1679938","caption":"Settings screen."}],"raw_content":"<!--section=description-->\n<p>Allows user to cache output of any shortcode by adding a <code>cache<\/code> attribute to it. For example, cache output of <code>[gallery]<\/code> shortcode like this: <code>[gallery cache]<\/code>.<\/p>\n\n<p>Also try out my other plugins:<\/p>\n\n<ul>\n<li><a href=\"http:\/\/arunas.co\/cc\">Content Cards<\/a> - a plugin that makes ordinary web links great by making it possible to embed a beautiful Content Card to link to any web site.<\/li>\n<li><a href=\"http:\/\/arunas.co\/gust\">Gust<\/a> - a Ghost-like admin panel for WordPress, featuring Markdown based split-view editor.<\/li>\n<li><a href=\"http:\/\/arunas.co\/tinyratings\">tinyRatings<\/a> - a simple rating system for WordPress. Allow your users to like, up\/down vote or 5-star your posts, pages, taxonomies or even custom things.<\/li>\n<li><a href=\"http:\/\/arunas.co\/tinycoffee\">tinyCoffee<\/a> - a PayPal donations button with a twist. Ask people to treat you to a coffee\/beer\/etc.<\/li>\n<li><a href=\"http:\/\/arunas.co\/tinysocial\">tinySocial<\/a> - a plugin to display social sharing links to Facebook\/Twitter\/etc. via shortcodes<\/li>\n<li><a href=\"http:\/\/arunas.co\/tinytoc\">tinyTOC<\/a> - a plugin auto-generate tables of content for posts with many chapter headlines.<\/li>\n<li><a href=\"http:\/\/arunas.co\/tinyip\">tinyIP<\/a> - <em>Premium<\/em> - stop WordPress users from sharing login information, force users to be logged in only from one device at a time.<\/li>\n<\/ul>\n\n<p>An enormous amount of coffee was consumed while developing these plugins, so if you like what you get, please consider supporting me <a href=\"https:\/\/patreon.com\/arunas\">on Patreon<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install via <code>WP Admin &gt; Plugins &gt; Add New<\/code> or download a .zip file and upload via FTP to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>(optional) Modify options via <code>WP Admin &gt; Settings &gt; ShortCache<\/code>, if needed.<\/li>\n<li>In the shortcode You want to cache, add a <code>cache<\/code> attribute: <code>[gallery cache]<\/code>.<\/li>\n<li>(optional) You can define a custom cache interval by passing that to the attribute like this: <code>[gallery cache=\"5\"]<\/code> - this will be cached for 5 hours.<\/li>\n<li>(optional) You can also define a custom cache scope by passing a <code>cache-scope<\/code> attribute: <code>[gallery cache cache-scope=\"user_id,post_id\"]<\/code>. This will create different caches for every user and every post.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Install via <code>WP Admin &gt; Plugins &gt; Add New<\/code> or download a .zip file and upload via FTP to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>(optional) Modify options via <code>WP Admin &gt; Settings &gt; ShortCache<\/code>, if needed.<\/li>\n<li>In the shortcode You want to cache, add a <code>cache<\/code> attribute: <code>[gallery cache]<\/code>.<\/li>\n<li>(optional) You can define a custom cache interval by passing that to the attribute like this: <code>[gallery cache=\"5\"]<\/code> - this will be cached for 5 hours.<\/li>\n<li>(optional) You can also define a custom cache scope by passing a <code>cache-scope<\/code> attribute: <code>[gallery cache cache-scope=\"user_id,post_id\"]<\/code>. This will create different caches for every user and every post.<\/li>\n<\/ol><\/dd>\n<dt>So, how do I cache a shortcode?<\/dt>\n<dd><p>In the shortcode You want to cache, add a <code>cache<\/code> attribute: <code>[gallery cache]<\/code>.<\/p><\/dd>\n<dt>Can I control how long should it stay in cache?<\/dt>\n<dd><p>Yes, there is a setting for that in <code>Settings &gt; ShortCache<\/code>. Also You can define a custom cache interval by passing that to the attribute like this: <code>[gallery cache=\"5\"]<\/code> - this will be cached for 5 hours.<\/p><\/dd>\n<dt>What does \"Cache Scope\" mean?<\/dt>\n<dd><p>This defines how granular the cache should be. If you disable all check-boxes, one cache value will be stored for the whole site. If you check 'User ID', a different value will be cached for every logged in user. You can also differentiate it by Post ID or the URI where the short code is displayed.<\/p>\n\n<p>The \"Last Update Timestamp\" setting ensures that caches are regenerated if there is an update (a saved post\/page) somewhere on the site.<\/p><\/dd>\n<dt>Can I control Cache Scope on per shortcode basis?<\/dt>\n<dd><p>Yes, You can define a custom cache scope by passing a <code>cache-scope<\/code> attribute: <code>[gallery cache cache-scope=\"user_id,post_id\"]<\/code>. This will create different cache values for every user and every post.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Initial release on wp.org<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Allows user to cache output of any shortcode by adding a cache attribute to it.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/65669","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=65669"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ideag"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=65669"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=65669"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=65669"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=65669"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=65669"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=65669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}