=== Page Cache & Visibility Manager for Fastest Cache === Contributors: faseehsyed Donate link: https://syedfaseeh.com Tags: cache, fastest cache, visibility, hide page, exclude cache Requires at least: 5.5 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 1.0.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Select specific pages to exclude from Fastest Cache and/or hide from non-staff users with a simple settings page. == Description == This plugin provides simple but powerful controls to manage caching and visibility on a per-page basis: * **Exclude from cache** – Prevent Fastest Cache from caching selected pages. * **Hide from customers** – Make selected pages invisible to unauthorised users (returns a discreet 404). * **Menu auto-cleanup** – Removes hidden pages from navigation menus for unauthorised users. * **Customisable access** – Choose which user capability (e.g., Editors or Admins) can see hidden pages. Works out-of-the-box with [WP Fastest Cache](https://wordpress.org/plugins/wp-fastest-cache/), and also sends strict no-cache headers respected by most caching systems. == Installation == 1. Upload the plugin folder to `/wp-content/plugins/` or install directly via Plugins → Add New → Upload. 2. Activate the plugin from **Plugins → Installed Plugins**. 3. Go to **Settings → Page Cache & Visibility** to configure: - Tick pages you want excluded from cache. - Tick pages you want hidden from non-staff. - Adjust the required capability (default: `edit_pages`). == Frequently Asked Questions == = Does this only work with WP Fastest Cache? = It’s designed for Fastest Cache, but also sends no-cache headers that other caching systems respect. = What happens if I hide a page? = Non-staff users will see a standard 404. Staff with the required capability will still see the page. = Can I change who counts as staff? = Yes. Enter a capability such as `edit_pages` (Editors+) or `manage_options` (Admins only). = Will hidden pages still appear in menus? = No. The plugin automatically removes hidden pages from menus for unauthorised users. == Changelog == = 1.0.4 = * Removed direct definitions of DONOTCACHE* constants to comply with prefixing guidelines. * Added strong no-cache headers helper. * Updated Text Domain to match plugin slug (`pcvmfc-page-cache-visibility`). * General code tidy-up and re-test on clean install. = 1.0.3 = * Changed plugin prefix to "pcvmfc" for uniqueness and compliance. * Updated Contributors field to match WordPress.org username. * Removed "WP" from plugin name for guideline compliance. * Other minor improvements for WordPress.org approval. = 1.0.2 = * Fixed: Removed deprecated load_plugin_textdomain(). * Fixed: Text domain now matches plugin slug. * Fixed: Updated Tested up to to 6.8. = 1.0.1 = * Fixed: Plugin URI and Author URI conflict. * Fixed: Text domain consistency. = 1.0.0 = * Initial release. == Upgrade Notice == = 1.0.3 = Prefix and contributor fixes for WordPress.org submission; required for approval.