Skip to content

Released version 3.4.3

Choose a tag to compare

@dg dg released this 27 Oct 18:41
· 36 commits to master since this release

✨ New Features

  • Ready for PHP 8.6
  • SQLiteStorage now cleans up after itself – expired items are removed by probabilistic garbage collection, just like in FileStorage (#83)

🐛 Bug Fixes

  • FileStorage: an Items dependency on an item that is being generated at the same moment no longer hangs the process (#54)
  • FileStorage: cleaning the cache leaves alone files and directories of other tools sharing the cache directory, such as Latte, and copes safely with any foreign file it comes across (#45)
  • MemcachedStorage: items with an expiration longer than 30 days are now kept for the intended time
  • SQLiteStorage: bulkRead() works with any number of keys, regardless of the SQLite limit of query parameters

🛡️ Robustness

  • PsrCacheAdapter follows PSR-16 more closely: a zero or negative TTL deletes the item, and a DateInterval TTL is converted independently of the timezone
  • Edge cases in storages: a non-positive expiration in MemcachedStorage removes the item, SQLiteJournal keeps priority 0, SQLiteStorage ignores Sliding without Expire like the other storages, and SQLite transactions are rolled back on failure