Contributors: hnle
Donate link: https://hinaloe.net/
Tags: public, post, preview, posts, custom post types, draft, cache, cdn, cloudfront, cloudflare, proxy cache, nginx
Requires at least: 3.7
Tested up to: 4.8
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Disable cache when show public post preview post
You no longer have to use this plugin because it was merged to PPP plugin at v2.6.0.
This plugin send Cache-Control: no-cache, must-revalidate
header when show public-post-preview post.
In other word, that make skip cache of CDN (like CloudFlare, CloudFront... and other), or Proxy-Cache (Like Nginx). So, outside people always can see newest draft, and there is no need extra time to close public draft.
This plugin needs PHP 5.3+
Note: If you're using CloudFront, you should also use C3 Cloudfront Cache Controller
- Upload
plugin-name.php
to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
- Use built in function for disable cache.
- First release