spiritix/lada-cache
Redis-based, fully automated query cache for Laravel. Transparent with Eloquent/Query Builder, granular invalidation of affected rows/tables, scalable and cluster-ready. Includes Debugbar insights and table include/exclude controls.
SADD for tag invalidation, UNLINK for non-blocking flushes).MigrationsEnded) and database events (e.g., insert, update) to auto-invalidate cache. This reduces manual invalidation overhead and improves consistency.UNION, subqueries, joins) is a strength but also a potential risk. Edge cases (e.g., dynamic SQL, raw queries) may bypass caching or cause invalidation issues. Mitigation: Thoroughly test with the application’s query patterns; use withoutCache() for problematic queries.exclude_tables for problematic tables.UNION, CTEs) that might bypass caching or cause invalidation issues?id INT), or are there composite keys/pivot tables that could affect row-level tagging?lada-cache.redis_connection). Compatible with Redis clusters and sentinel setups.flush, disable/enable).withoutCache(), excluded tables).LADA_CACHE_ACTIVE=false to verify compatibility.include_tables/exclude_tables.LADA_CACHE_ACTIVE=true) after validating the pilot.LadaCacheTrait to base models or critical models first.withoutCache() or isolate to a dedicated connection.DB::select()) or dynamic query builders.cache or custom) in .env.php artisan vendor:publish --provider="Spiritix\LadaCache\LadaCacheServiceProvider").LadaCacheTrait to base models or critical models.include_tables/exclude_tables in config/lada-cache.php.LADA_CACHE_DEBUGBAR=true) and monitor metrics.config/lada-cache.php and .env. Changes are deploy-time only (no runtime restarts).Cache invalidated for table 'users').php artisan lada-cache:flush and lada-cache:disable for troublesHow can I help you explore Laravel packages today?