{"id":24976233,"url":"https://github.com/madebyaris/cache-for-search","last_synced_at":"2026-05-18T19:08:09.786Z","repository":{"id":274297890,"uuid":"922454461","full_name":"madebyaris/cache-for-search","owner":"madebyaris","description":"A high-performance WordPress plugin that enhances search functionality by implementing  caching with Disk or Redis. This plugin significantly improves search performance and reduces database load by caching search results.","archived":false,"fork":false,"pushed_at":"2025-01-27T06:14:26.000Z","size":454,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T00:24:30.860Z","etag":null,"topics":["redis-cache","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madebyaris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-26T08:54:48.000Z","updated_at":"2025-01-27T06:12:06.000Z","dependencies_parsed_at":"2025-03-29T08:22:53.093Z","dependency_job_id":"c3f39e2e-8f2f-4e78-8129-abaf7a93bb08","html_url":"https://github.com/madebyaris/cache-for-search","commit_stats":null,"previous_names":["madebyaris/cache-for-search"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/madebyaris/cache-for-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebyaris%2Fcache-for-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebyaris%2Fcache-for-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebyaris%2Fcache-for-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebyaris%2Fcache-for-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madebyaris","download_url":"https://codeload.github.com/madebyaris/cache-for-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebyaris%2Fcache-for-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278258459,"owners_count":25957282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["redis-cache","wordpress","wordpress-plugin"],"created_at":"2025-02-03T21:59:49.748Z","updated_at":"2025-10-04T02:59:52.464Z","avatar_url":"https://github.com/madebyaris.png","language":"PHP","funding_links":["https://www.paypal.com/paypalme/airs"],"categories":[],"sub_categories":[],"readme":"# Redis / Disk cache for Search (full cache search) - WordPress Plugin\n\n[![License: GPL v2 or later](https://img.shields.io/badge/License-GPL%20v2%20or%20later-blue.svg)](https://www.gnu.org/licenses/gpl-2.0.html)\n\nA high-performance WordPress plugin that enhances search functionality by implementing caching via Redis or Disk. This plugin significantly improves search performance and reduces database load by caching search results.\n\n## Screenshots\n![Screenshot 1](/media/screenshoot.png)\n\n## 💝 Support \u0026 Donations\nIf you find this plugin useful, please consider supporting me by making a donation. Your support helps me maintain and improve the plugin.\n\n[![PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.com/paypalme/airs) [![Trakteer](https://img.shields.io/badge/Donate-Trakteer-red.svg)](https://trakteer.id/madebyaris/tip)\n\n## 👨‍💻 Hire Me\n✉️ [arissetia.m@gmail.com](arissetia.m@gmail.com)\n🌐 [madebyaris.com](https://madebyaris.com)\n\n## Features\n\n- 🚀 Redis-powered search result caching\n- 🧠 Smart two-layer caching system\n- 📊 Cache statistics tracking (hits/misses)\n- 🔄 Automatic cache invalidation on post updates\n- ⚙️ Smart caching strategies with adaptive algorithms\n- 🛠️ Configurable Redis and disk cache settings\n- 🎯 Admin interface for easy configuration\n- ⚡ Fallback to disk cache when Redis is unavailable\n\n## Requirements\n\n- PHP 7.1 or higher\n- WordPress 5.0 or higher\n- Redis server (optional)\n- PHP Redis extension (Only if you want to use Redis)\n\n## Installation\n\n1. Download the plugin from [GitHub](https://github.com/madebyaris/cache-for-search)\n2. Upload the plugin files to the `/wp-content/plugins/redis-for-search` directory\n3. Activate the plugin through the 'Plugins' screen in WordPress\n4. Configure the plugin settings under 'Settings \u003e Redis for Search'\n\n## Configuration\n\n1. Navigate to 'Settings \u003e Redis for Search' in your WordPress admin panel\n2. Configure your caching settings:\n   - Redis connection:\n     - Host (default: localhost)\n     - Port (default: 6379)\n   - Cache type (redis, disk, or both)\n   - Smart cache options:\n     - Cache lifetime\n     - Minimum hit count for persistence\n     - Adaptive caching threshold\n3. Optional: Enable auto-revalidation for automatic cache updates\n\n## Usage\n\nOnce configured, the plugin works automatically. It will:\n- Cache search results using the smart two-layer system:\n  - First layer: Redis for high-speed access\n  - Second layer: Disk cache for persistence and fallback\n- Intelligently manage cache storage based on search patterns\n- Serve cached results for identical searches from the fastest available source\n- Automatically invalidate cache when posts are updated\n- Track cache performance statistics for both layers\n- Adaptively optimize cache storage based on usage patterns\n\n### WP-CLI Commands\n\nThe plugin provides several WP-CLI commands to manage the cache:\n\n```bash\n# Rebuild the search cache for all posts\nwp redis-for-search rebuild\n\n# Options:\n#   --type=\u003ctype\u003e    Cache type (redis or disk)\n#   --batch=\u003csize\u003e   Batch size for processing (default: 100)\n```\n\nExample usage:\n```bash\n# Rebuild cache using Redis\nwp redis-for-search rebuild --type=redis\n\n# Rebuild cache using disk storage with batch size of 200\nwp redis-for-search rebuild --type=disk --batch=200\n```\n\nNote: Make sure WP-CLI is installed and you're in your WordPress installation directory when running these commands.\n\n## Contributing\n\nContributions are welcome! Feel free to:\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Author\n\n**M Aris Setiawan**\n- GitHub: [madebyaris](http://github.com/madebyaris)\n- Repository: [cache-for-search](https://github.com/madebyaris/cache-for-search)\n\n## License\n\nThis project is licensed under the GPL v2 or later - see the [LICENSE](https://www.gnu.org/licenses/gpl-2.0.html) file for details.\n\n## Support\n\nIf you encounter any issues or have questions, please [open an issue](https://github.com/madebyaris/cache-for-search/issues) on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebyaris%2Fcache-for-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadebyaris%2Fcache-for-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebyaris%2Fcache-for-search/lists"}