⚠️ [ABANDONED] Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain.
Want to warn some users if they see something strange happening.
When performing multiple queries on the same repo, same request, the setCacheLifetime remains in effect even if not set.
Running another query on the same repo during the same request or script run, you might expect the above query to use the cache. However, it does not. Instead, the repo still sees the setCacheLifetime(0) and runs the query against the database. Since this package does not reset the cacheLifetime after each query, you have to do it manually by using setCacheLifetime(null) on the subsequent query.
Want to warn some users if they see something strange happening. When performing multiple queries on the same repo, same request, the setCacheLifetime remains in effect even if not set.
The above will set the $this->cacheLifetime to zero, thus not caching.
Running another query on the same repo during the same request or script run, you might expect the above query to use the cache. However, it does not. Instead, the repo still sees the setCacheLifetime(0) and runs the query against the database. Since this package does not reset the cacheLifetime after each query, you have to do it manually by using setCacheLifetime(null) on the subsequent query.