hinaloe / non-cache-ppp

Home Page:https://wordpress.org/plugins/non-cache-ppp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non Cache Public Post Preview

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

Description

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

Installation

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Changelog

1.0.1

  • Use built in function for disable cache.

1.0

  • First release