Skip to content

Releases: pallets-eco/flask-caching

1.9.0

02 Jun 16:04

Choose a tag to compare

Released on June 2nd 2020

  • Added an option to include the functions source code when generating the cache
    key. PR #156.
  • Added a new feature that allows one to completely control the way how cache keys
    are generated. For example, one can now implement a function that generates
    cache the keys based on the POST-based requests.
    PR #159.
  • Fixed a few cache backend naming collisions by renaming them from simple to
    simplecache, null to nullcache and filesystem to
    filesystemcache.
  • Explicitly pass the default_timeout to RedisCache from
    RedisSentinelCache.
  • Use os.replace instead of werkzeug's rename due to Windows raising an
    OSError if the dst file already exist.
  • Documentation updates and fixes.

1.8.0

25 Nov 08:48

Choose a tag to compare

Released on November 24th 2019

Breaking: Dropped support for Python 2

  • Add option to specify if None is a cached value or not. See PR #140 and #141.
  • Allow to use __caching_id__ rather than __repr__ as an object caching key. PR #123.
  • The RedisCache backend now support generating the key_prefix via a callable. PR #109.
  • Emit a warning if the CACHE_TYPE is set to filesystem but no CACHE_DIR is set.
  • Fixes Google App Engine Memcache backend. See issue #120 for more details.
  • Various documentation updates and fixes.

1.7.2

30 May 13:49

Choose a tag to compare

Released on May 28th 2019

This is the last version supporting Python 2!

  • Do not run a cached/memoized function if the cached return value is None. PR #108.

1.7.1

16 Apr 09:29

Choose a tag to compare

Released on April 16th 2019

This is the last version supporting Python 2!

  • Fix introspecting Python 3 functions by using varkw. PR #101.
  • Remove leftover files (uwsgi.py) in PyPI package. See issue #102 for more details.

1.7.0

29 Mar 07:18

Choose a tag to compare

Released on March 29th 2019

This is the last version supporting Python 2!

  • Added a feature called response_filter which enables one to only
    cache views depending on the response code. PR #99.
  • A DeprecationWarning got turned into a TypeError.

1.6.0

06 Mar 21:38

Choose a tag to compare

Released on March 6th 2019

  • The delete_many function is now able to ignore any errors and continue
    deleting the cache. However, in order to preserve backwards compatibility,
    the default mode is to abort the deletion process. In order to use the new
    deletion mode, one has to flip the config setting CACHE_IGNORE_ERRORS to
    True. This was and still is only relevant for the filesystem and
    simple cache backends. PR #94.
  • Re-added the gaememcached CACHE_TYPE for improved backwards compatibility.
  • Documentation improvements. PR #96

1.5.0

23 Feb 22:32

Choose a tag to compare

Released on February 23rd 2019

Changes

  • Add support for a Redis Sentinel Cluster. PR #90.
  • Parameterize the hash function so alternatives can be used. PR #77.
  • Include the deprecated werkzeug.contrib.cache module in Flask-Caching. PR #75.

1.4.0

16 Sep 16:25

Choose a tag to compare

Released on April 16th 2018

Changes

  • Fix logic for creating key for var args in memoize. PR #70.
  • Allow older Werkzeug versions by making the UWSGICache backend conditional. PR #55.
  • Some documentation improvements. PR #48, #51, #56 and #67.
  • Some CI improvements. PR #49 and #50.

1.3.3

05 Oct 18:31

Choose a tag to compare

Released on October 5th 2017

Changes

  • Add support for multiple query params and use md5 for consistent hashing.
    PR #43.

1.3.2

25 Jun 16:26

Choose a tag to compare

Released on June 25th 2017

Changes

  • Fix spreadsaslmemcached backend when using Python 3.
  • Fix kwargs order when memoizing a function using Python 3.6 or greater.
    See #27.