Note: you may refer to README.md
for description of features.
- Declare compatibility with Laravel 12.
- Fixed file cache evictor sometimes throwing
UnexpectedValueException
due to race conditions- This could happen when multiple cleaners are running at the same time
- Minor general codebase cleanup
- Added fallback of Laravel's
Number::fileSize()
ifext-intl
is not availableext-intl
is now suggested instead of required
- Adopted Laravel's
Number::fileSize()
to show the estimated evicted storage size stats- Therefore, further requires
ext-intl
- Note: no code change required!
- Therefore, further requires
Special note: this update is made in response to the external rugpull as discovered in #4. All previous versions are "tainted" and will not be supported, effective immediately. Update your installed version now!!!
- No longer depends on
ramazancetinkaya/byte-formatter
as culprit of rugpull- A StackOverflow-copied solution is being used for now
- A proper solution will be made later
- Added a changelog at
CHANGELOG.md
Hotfix: avoid database
eviction race condition (38d70027b1778685a3c5ddffb4e10a9892bf4896); improve test case stability (2f7fecf581d5598231671ba5511e219aa94122b3)
The v1.0.1 release of the library.
- Added the earlier-promised auto tests (#2)
- Reorganized the README
- Removed
package.json
(#2) to fix possible installation failures
Initial release.
This is a utility library for Laravel that can efficiently remove many expired cache items in Laravel to prevent storage overload.
- Supports the
file
anddatabase
cache driver - Supports self-defined cache eviction strategies
- Uses PHP generators to avoid using too much memory while scanning for expired items