Comments (4)
Aren't all existing cache entries cleared at the end of setUp()
by cache()->flush()
?
Where is that defined, anyway?
from laravel-model-caching.
Ah yes, you're right. I forgot about that. So then why do you think we were getting false positives?
from laravel-model-caching.
Maybe it's not working. Can you tell me what code is run by that call?
from laravel-model-caching.
Looking at an example of a false positive result gave me further insight into the issue:
tests/Unit/CachedBuilderTest.php
function testValueModelResultsCreatesCache
was caching stuff under the specific key that was to be tested as well as additional keys as a side effect. One of those additional keys was then mistakenly used in the cache retrieval. The result was not the expected result. But as the result was a container containing the expected value, the first mistake was compounded by extracting the desired value from the returned container. Thus a successful comparison could be made. Test passed. Test was wrong.
In any case, the error was an error of the specific test, it was not systemic. It just so happened that this error was also present in another test. Both tests have previously been fixed. There is nothing to do here.
from laravel-model-caching.
Related Issues (20)
- Unsupported enums HOT 3
- Performance test on 3000 records HOT 1
- Install error "requires illuminate/cache ^9.0 -> found..." HOT 2
- Cache Not Clearing With morphTo/morphedByMany
- GeneaLabs\LaravelModelCaching\CacheKey::processEnum() HOT 3
- Only flush cache when delete() returns a count
- Clear cache in a record of the model. HOT 2
- Saving not working with eloquent strict mode HOT 2
- What is cacheCooldownSecounds definition? HOT 1
- Add support for Laravel 10 HOT 2
- Object of class Illuminate\\Database\\Query\\Expression could not be converted to string HOT 6
- Since 0.12.4 I get error "GeneaLabs\LaravelModelCaching\CacheKey::processEnum(): Argument #1 ($value) must be of type BackedEnum|UnitEnum|string, null given, called in ...\vendor\genealabs\laravel-model-caching\src\CacheKey.php on line 409" HOT 23
- Cannot access "parent" when current class scope has no parent HOT 1
- Laravel v10.3.0 breaks LaravelModelCaching HOT 2
- checkCooldownAndFlushAfterPersisting(): Argument #2 ($relationship) must be of type string, array given, called in /var/www/html/vendor/genealabs/laravel-model-caching/src/Traits/ModelCaching.php on line 83 HOT 8
- Is table join supported? HOT 7
- The attribute [column3] either does not exist or was not retrieved for model HOT 1
- Stale cached value returned where(...)->first() HOT 4
- Fix for GeneaLabs\LaravelModelCaching\CacheKey::processEnum(): Argument #1 ($value) must be of type BackedEnum|UnitEnum|string, null given
- processEnum(): Argument #1 ($value) must be of type BackedEnum|UnitEnum|Illuminate\Database\Query\Expression|string, null given HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-model-caching.