manifest / performance / ktwp-wp-plugin-caching-toolkit
KupieTools Caching Toolkit
A plugin providing functions for WordPress developers to implement PHP function caching for performance.
by Michael Kupietz · github.com/kupietools/ktwp-wp-plugin-caching-toolkit · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/kupietools/ktwp-wp-plugin-caching-toolkit/archive/refs/heads/main.zipDeclares an update source (https://michaelkupietz.com/kupietools-caching-toolkit/), so updates arrive through the plugin's own updater.
From the readme
KupieTools Caching Toolkit
A powerful WordPress plugin that provides a framework for developers to implement function caching for dramatic performance improvements. This toolkit intelligently caches function results and automatically clears those caches when content changes.
Features
- Function result caching with automatic invalidation
- Configurable cache invalidation triggers
- Integration with WordPress core hooks for cache management
- Admin interface under the KupieTools menu
- Optimized for performance with minimal overhead
- Uses WordPress transients and object cache for maximum compatibility
- Developer-friendly API for implementing caching in custom code
Core Functions
For Developers
- getFunctionTransient($functionName, $arguments=[], $manualClearOnly=false) - Retrieve cached function results
- setFunctionTransient($functionName, $value, $arguments=[]) - Cache function results
- hashArguments($arguments) - Utility function to create consistent hashes of function arguments
Cache Invalidation
The plugin intelligently clears caches when content changes, with configurable triggers for:
- Post saving/updating
- Category/taxonomy creation, editing, and deletion
- Post