Skip to content

Releases: locomotivemtl/charcoal-cache

charcoal-cache 0.2.2.1

03 Apr 20:09
Compare
Choose a tag to compare

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

11 Mar 19:53
Compare
Choose a tag to compare

Fixed

  • PSR-6 compliance of Stash on CachePoolFacade
  • Various minor issues reported from linting and by Scrutinizer

charcoal-cache 0.2.0

11 Mar 15:30
Compare
Choose a tag to compare

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() with save() and repurposed set() for quick value storage
    • Protected setter/getter to the cache pool
  • Improved CacheMiddleware
    • Renamed method noCacheResponse() to disableCacheHeadersOnResponse()

Removed

  • Logger from CachePoolFacade

Fixed

  • Various lint issues

charcoal-cache 0.1.4

11 Mar 15:20
Compare
Choose a tag to compare

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 use CachePoolTrait

Fixed

  • Various lint issues

charcoal-cache 0.1.3

05 Dec 16:34
Compare
Choose a tag to compare

When cache should not be used, "no-cache" headers are added to the HTTP response.

charcoal-cache 0.1.2

11 Mar 15:13
Compare
Choose a tag to compare

Added facade for main cache pool. Available on service locator as cache/facade.

charcoal-cache 0.1.1

11 May 20:58
Compare
Choose a tag to compare

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 to CacheConfig)

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

07 May 23:15
Compare
Choose a tag to compare

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

Changed

  • Container entry cache uses CacheBuilder 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 to middlewares/charcoal/cache/middleware/cache
  • Rewritten previously defined unit tests

Fixed

  • CacheMiddleware hashes the full URL instead of lightly serializing certain URI components