| 开发者 | rsteuber |
|---|---|
| 更新时间 | 2026年10月3日 03:35 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
Nothing is deleted. Until you edit the affected blocks:
No. A block hidden by a display condition is only left out of the page output; its content is still stored in the post. If the plugin is deactivated, every block is shown to every visitor. Don't use display conditions to protect content that must stay private.
Yes. A page cache serves one stored copy of a page to every visitor, so a rule that depends on the moment of the visit would show everyone the same result. When a page contains a block with an enabled date range rule whose result can still change, the plugin keeps that page out of page caches, whether the block is shown or hidden at that moment: it defines DONOTCACHEPAGE, which most caching plugins respect, and sends no-cache headers when it still can.
DONOTCACHEPAGE is set. Caches that only look at headers, such as server-level caches and CDNs, can then still store the page, so exclude those pages in their settings.
Developers can switch this off with the steuber_block_logic/cache_guard_enabled filter (return false); the steuber_block_logic/uncacheable_render action fires, with the reason, when a page is kept out of the cache.