Releases: locomotivemtl/charcoal-cache
Releases · locomotivemtl/charcoal-cache
charcoal-cache 0.2.2.1
Added
- Add a
skipCache
option in which could be provided skip conditions to bail before fetching the cache.
Currently supported container :session_vars
TODO
- Add containers for :
cookies
,session
, etc..
charcoal-cache 0.2.1
Fixed
- PSR-6 compliance of Stash on
CachePoolFacade
- Various minor issues reported from linting and by Scrutinizer
charcoal-cache 0.2.0
BC Breaks
CachePoolFacade
(see below)
Added
- Unit tests for
CachePoolFacade
- Unit tests for no-cache HTTP headers on
CacheMiddleware
Changed
- Refactored
CachePoolFacade
- Bumped default 60 second time-to-live to 1 hour
- Renamed the option/setter/getter "ttl" to "default_ttl"
- Replaced method
set()
withsave()
and repurposedset()
for quick value storage - Protected setter/getter to the cache pool
- Improved
CacheMiddleware
- Renamed method
noCacheResponse()
todisableCacheHeadersOnResponse()
- Renamed method
Removed
- Logger from
CachePoolFacade
Fixed
- Various lint issues
charcoal-cache 0.1.4
Fixed loose version constraint on slim/http, introduced in 0.1.0, that affected unit tests.
Added
- Trait
CachePoolTrait
to quickly create a temporary cache pool
Changed
- Locked "slim/http" to v0.3 for PHP 5 and v0.4 for PHP 7
- Construction of container entry "cache/facade"
- Class
AbstractCacheMiddlewareTest
to useCachePoolTrait
Fixed
- Various lint issues
charcoal-cache 0.1.3
When cache should not be used, "no-cache" headers are added to the HTTP response.
charcoal-cache 0.1.2
Added facade for main cache pool. Available on service locator as cache/facade
.
charcoal-cache 0.1.1
Fixed a couple of bugs, introduced in 0.1.0, that affected the instantiation of the main cache pool.
Fixed
- Container entry "cache" ignoring "cache/config.active"
- Container entry "cache" incorrectly merging fallback cache type
(moved responsibility toCacheConfig
)
Added
CacheConfig::defaultTypes()
CacheServiceProvider::registerDrivers()
and moved driver collection entries
Changed
CacheConfig::types()
to merge default cache type with current values- Update
README
sections: Dependencies, Dependents, Development Dependencies
charcoal-cache 0.1.0
Bugs 2019-03-01
- Dev-dependency slim/http v0.5+ breaks unit tests.
Fixed in 0.1.4.
Bugs 2018-05-11
- The fallback cache type, "memory", does not merge properly for the main cache pool.
- The "active" option is ignored by the main cache pool.
Fixed in 0.1.1.
Initial Release
Split from locomotivemtl/charcoal-app to benefit smaller components of the Charcoal framework.
Highlights
A few things have been changed, fixed, or improved from its previous home.
Added
CacheBuilder
is used to create PSR-6 cache pools with StashCachePoolAwareTrait
is offered as a convenience to minimize duplicate / boilerplate code
Changed
- Container entry
cache
usesCacheBuilder
and resolve driver choices (cache/config.types
) - Container entry
cache/driver
was simplified to return the default pool's (cache
) driver instead of resolving the driver choices and passing them to the pool - Container entry
middlewares/charcoal/app/middleware/cache
renamed tomiddlewares/charcoal/cache/middleware/cache
- Rewritten previously defined unit tests
Fixed
CacheMiddleware
hashes the full URL instead of lightly serializing certain URI components