Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flask-caching to 2.3.0 #632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented May 4, 2024

This PR updates Flask-Caching from 1.7.1 to 2.3.0.

Changelog

2.3.0

-------------

Released 2024-05-04

- Added ``response_hit_indication`` flag to ``Cache.cached`` decorator for appending 'hit_cache' headers to responses, indicating cache hits.

2.2.0

-------------

- Drop python 3.7 support
- python 3.11 officially supported
- Fix issue causing `args_to_ignore` to not work with `flask_caching.Cache.memoize` decorator when keyword arguments were used in the decorated function call

2.1.0

-------------

Released 2024-10-08

- fix type signature in ``flask_caching.utils.make_template_fragment_key``. :pr:`430`
- Added docs and example for make_cache_key
- support Flask 3

2.0.2

-------------

Released 2023-01-12

- fix issue with boto3 dependencie due to latest cachelib released
- migrate ``flask_caching.backends.RedisCluster`` dependency from redis-py-cluster to redis-py
- bug fix: make the ``make_cache_key`` attributed of decorated view functions writeable. :pr:`431`, :issue:`97`

2.0.1

-------------

Released 2022-07-30

- Relax dependency pin to allow Flask 2.x.x

2.0.0

-------------

Released 2022-06-26

- fix bug where ``flask_caching.backends.RedisSentinelCache.get_many`` would query wrong host&port combination. :pr:`372`
- Remove ``flask_caching.backends.FileSystemCache`` method overrides. It now shares 100% of ``cachelib.FileSystemCache`` API and is fully compatible. Functionality relient on implementation details of said overrides from older releases might not work anymore. :pr:`369`
- Add proxy to underlaying ``has`` method of cache clients. :pr:`356`
- ``flask_caching.backends.FileSystemCache`` now stores timestamps in a universal (non-frammed) way following the lastest version of ``cachelib.FileSystemCache``. The change also reduces overhead from 17 bytes (via previous method using pickle) to 4 bytes (using python's ``struct``). This, however, will break compatibily since older timestamps are serialized with a different strategy.

1.11.1

--------------

Released 2022-05-27

- Add cachelib to setup.py: :pr:`354`

1.11.0

--------------

Released 2022-05-27

- Add suport for cached/memoized generators. :pr:`286`
- Add support for Flask 2.0 async. :pr:`282`
- Cachelib is now used as backend. :pr:`308`
- Drop support for python 3.6. :pr:`332`
- Add support for dynamic cache timeouts `296`
- Fix bug in ``CACHE_OPTIONS`` reading for redis in ``RedisSentinelCache``. :pr:`343`

1.10.1

--------------

Released 2021-03-17

- A ``GoogleCloudStorageCache`` backend has been added to the user contributed
caching backends. :pr:`214`
- Fix a regression introduced in the last release which broke all applications
subclassing the ``Cache`` class.
- Add test_generic_get_bytes test case.
:pr:`236`
- Various improvements and fixes.

1.10.0

--------------

Released 2021-03-04

- **Important**: The way caching backends are loaded have been refactored.
Instead of passing the name of the initialization function one can now use
the full path to the caching backend class.
For example:
``CACHE_TYPE="flask_caching.backends.SimpleCache"``.
In the next major release (2.0), this will be the only supported way.
- UWSGICache is not officially supported anymore and moved to the user
contributed backends.
- Switch from Travis-CI to GitHub Actions
- Fix add() in RedisCache without a timeout.
:pr:`218`
- Fix error in how the FileSystemCache counts the number of files.
:pr:`210`
- Type Annotations have been added.
:pr:`198`
- Add some basic logging to SimpleCache and FileSystemCache for better
observability.
:pr:`203`
- Add option in memoize to ignore args
:pr:`201`
- Stop marking wheels as Python 2 compatible.
:pr:`196`
- Fix ``default_timeout`` not being properly passed to its super constructor.
:pr:`187`
- Fix ``kwargs`` not being passed on in function ``_memoize_make_cache_key``.
:pr:`184`
- Add a Redis Cluster Mode caching backend.
:pr:`173`
- Do not let PIP install this package on unsupported Python Versions.
:pr:`179`
- Fix uWSGI initialization by checking if uWSGI has the 'cache2' option
enabled. :pr:`176`
- Documentation updates and fixes.

1.9.0

-------------

Released 2020-06-02

- Add an option to include the functions source code when generating the cache
key. :pr:`156`
- Add an feature that allows one to completely control the way how cache keys
are generated. For example, one can now implement a function that generates a
cache key the based on POST requests.
:pr:`159`
- Fix the 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

-------------

Released 2019-11-24

- **BREAKING:** Removed support for Python 2. Python 3.5 and upwards are
supported as of now.
- 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

-------------

Released 2019-05-28

**This is the last version supporting Python 2!**

- Do not run a cached/memoized function if the cached return value is None.
:pr:`108`
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant