lighthouseuk / wp-exclude-from-wpe-smarter-cache
Exclude WordPress posts from WP Engine's Smarter Cache
v1.0.1
2024-12-02 15:18 UTC
Requires
- composer/installers: ~2.3
Requires (Dev)
README
This WordPress plugin allows you to exclude posts from Smarter Cache. This is useful for posts that have critical dynamic content in them.
Installing
This plugin can be installed using composer by including running composer require lighthouseuk/wp-exclude-from-wpe-smarter-cache
.
Usage
Define an array of posts IDs in your wp-config.php
file
define( 'LH_EXCLUDE_FROM_SMARTER_CACHE', array( 1, 2 ) );
TODO
- Add user interface to set posts in the database.
- Set cache length.