Add filterable caching system with auto-invalidation.#32
Merged
Conversation
…in filterable classes
…in Filterable class
- Introduced "Cache Profiles" documentation detailing reusable cache configurations, usage examples, and best practices. - Added "Cache Scoping" documentation explaining user, tenant, and custom scoping with practical use cases. - Created "Caching Strategies" documentation covering various caching techniques including time-based, conditional, tagged, and profile-based caching.
- Cleaned up whitespace and formatting across multiple files. - Enhanced table formatting for better readability in auto-invalidation and caching strategies sections. - Updated examples to ensure consistent use of cache tags and scopes. - Improved descriptions and organization of caching profiles and strategies. - Added best practices and use cases for caching to provide clearer guidance. - Ensured all code snippets are properly formatted and aligned with documentation standards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds caching support for Filterable queries, providing:
filterable.phpand user documentation.Why
Enable high-performance caching for Filterable queries with safe invalidation and profiling, ready for production use.
How to test / review
filterable.phpconfig changes.composer install && phpunit.FILTERABLE_CACHE_ENABLED=trueandCACHE_DRIVER=redis, call->cache(3600), verify cache hits/misses and invalidation.Notes