wp-content/plugins/withy/withy.php
Withy
Show a block to some readers and not others, without making every page uncacheable.
== Description ==
Conditional display plugins evaluate per visitor and turn every page into a cache miss. Withy separates conditions into two kinds: coarse ones that produce a handful of cache variants, and per-visitor ones that are rendered client-side from a small endpoint.
It tells you which kind each rule is as you build it, so you find out that “show to logged-in users” is cheap and “show to users who bought something” is not, before you ship it.
Hidden blocks are absent from the markup rather than hidden with CSS, so nothing leaks to a reader who was not meant to see it.
== Screenshots ==
Numbered the way they ship in /assets/. Click any one to see it full width.
== Installation ==
- Install and activate the plugin.
- Select a block and set a condition in the sidebar.
- Read the caching note the rule gives you.
Coarse rules need a vary rule on your cache. The readme covers four.
== Frequently asked questions ==
Is hidden content really hidden?
It is not rendered. There is nothing in the HTML to reveal with dev tools.
Per-visitor rules without JavaScript?
They render nothing, which is the safe failure. The rule builder says so when you pick one.
== Changelog ==
= 2.0.1 =
- Fixed: coarse rules on a page with a per-visitor rule fell back to per-visitor evaluation for the whole page.
= 2.0.0 =
- Rules split into coarse and per-visitor with explicit caching guidance.
- Hidden blocks are no longer rendered and hidden with CSS.