manifest / performance / html-fragment-cache
HTML fragment cache
HTML fragment cache is simple WP plugin for developers
★ 3stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/keybeatz/html-fragment-cache/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
html-fragment-cache
HTML fragment cache is simple WP plugin for developers.
This plugin provide HTML caching class with various functions and the API for easy implementation. It is using classic file cache method. This plugin may be very useful once you need to cache specific pieces of your code insted of whole page and can't use memcached or any other object caching method. Plugin offers keybased (key-data) system which can be used also for caching dynamic queries with multiple parameters.
Basic example
Example with php obgetcontents():
Revalidation examples:
Settings:
- for settings please check main plugin file and edit provided constants