{"id":28052652,"url":"https://github.com/kupietools/ktwp-wp-plugin-caching-toolkit","last_synced_at":"2026-04-15T23:31:55.291Z","repository":{"id":291827527,"uuid":"967092901","full_name":"kupietools/ktwp-wp-plugin-caching-toolkit","owner":"kupietools","description":"A plugin providing functions for WordPress developers to implement PHP function caching for performance.","archived":false,"fork":false,"pushed_at":"2025-09-01T00:53:22.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T17:38:07.164Z","etag":null,"topics":["utility-functions","wordpress","wordpress-development","wordpress-performance","wordpress-plugin","wordpress-plugin-development","wordpress-theme-development"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kupietools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-15T23:23:20.000Z","updated_at":"2025-09-01T00:53:25.000Z","dependencies_parsed_at":"2025-10-07T17:25:15.976Z","dependency_job_id":"292fea52-c8c5-495e-ac6e-72d47bf63d2a","html_url":"https://github.com/kupietools/ktwp-wp-plugin-caching-toolkit","commit_stats":null,"previous_names":["kupietools/ktwp-wp-plugin-caching-toolkit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kupietools/ktwp-wp-plugin-caching-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupietools%2Fktwp-wp-plugin-caching-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupietools%2Fktwp-wp-plugin-caching-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupietools%2Fktwp-wp-plugin-caching-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupietools%2Fktwp-wp-plugin-caching-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kupietools","download_url":"https://codeload.github.com/kupietools/ktwp-wp-plugin-caching-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupietools%2Fktwp-wp-plugin-caching-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31864991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["utility-functions","wordpress","wordpress-development","wordpress-performance","wordpress-plugin","wordpress-plugin-development","wordpress-theme-development"],"created_at":"2025-05-12T02:16:13.404Z","updated_at":"2026-04-15T23:31:55.254Z","avatar_url":"https://github.com/kupietools.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KupieTools Caching Toolkit\n\nA 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.\n\n## Features\n\n- Function result caching with automatic invalidation\n- Configurable cache invalidation triggers\n- Integration with WordPress core hooks for cache management\n- Admin interface under the KupieTools menu\n- Optimized for performance with minimal overhead\n- Uses WordPress transients and object cache for maximum compatibility\n- Developer-friendly API for implementing caching in custom code\n\n## Core Functions\n\n### For Developers\n\n- `getFunctionTransient($functionName, $arguments=[], $manualClearOnly=false)` - Retrieve cached function results\n- `setFunctionTransient($functionName, $value, $arguments=[])` - Cache function results\n- `hashArguments($arguments)` - Utility function to create consistent hashes of function arguments\n\n### Cache Invalidation\n\nThe plugin intelligently clears caches when content changes, with configurable triggers for:\n- Post saving/updating\n- Category/taxonomy creation, editing, and deletion\n- Post trashing\n- Theme and plugin file editing\n\n## Configuration Options\n\nIn the WordPress admin panel under KupieTools:\n- Enable/disable cache clearing for different WordPress actions\n- Configure cache behaviors for different types of content updates\n- Special handling for theme/plugin file editing\n\n## Benefits\n\n- Dramatically improves performance for expensive function calls\n- Reduces database queries and server processing time\n- Intelligent cache invalidation means content stays fresh\n- No manual cache management required - it all happens automatically\n- Preserves dynamic content functionality while improving speed\n\n## For WordPress Developers\n\n```php\n// Example usage in your theme or plugin:\nfunction my_expensive_function($param1, $param2) {\n    // Check if we have a cached result\n    $cached = getFunctionTransient('my_expensive_function', [$param1, $param2]);\n    if ($cached !== null) {\n        return $cached;\n    }\n    \n    // If not cached, do the expensive operation\n    $result = // ... expensive operations ...\n    \n    // Cache the result for future use\n    setFunctionTransient('my_expensive_function', $result, [$param1, $param2]);\n    \n    return $result;\n}\n```\n\n## Installation\n\n1. Upload the plugin files to the `/wp-content/plugins/ktwp-caching-toolkit` directory\n2. Activate the plugin through the WordPress admin interface\n3. Configure settings under the KupieTools menu in WordPress admin\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkupietools%2Fktwp-wp-plugin-caching-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkupietools%2Fktwp-wp-plugin-caching-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkupietools%2Fktwp-wp-plugin-caching-toolkit/lists"}