chore(deps): update dependency flask-caching to v2.5.0 - #469
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency flask-caching to v2.5.0#469renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
==2.0.2→==2.5.0Release Notes
pallets-eco/flask-caching (Flask-Caching)
v2.5.0Compare Source
Released 2026-08-24
datetime.timedelta. :issue:266CACHE_SERIALIZERto set the cachelib serializer the backend uses.:issue:
209CACHE_TYPE="cachelib.ValkeyCache.:pr:
668@cachedand@memoizenow go through the publicCacheproxy methods(
get,set,has,delete,delete_many,get_manyandset_many) instead of calling the backend directly. :issue:417CACHE_REDIS_HOSTaccepts an already createdredis.Redisclient instead of a host name, which allows sharing a connection pool with
other extensions and the application. :issue:
629#237and :pr:667key_prefixwhen building@cached(query_string=True)cachekeys. :issue:
302Cache.delete_cached()and extendmake_cache_key()withpathandquery_argsarguments to make deleting views decorated with
cached(query_string=True)possible.:issue:
243hashlib.sha256instead ofhashlib.md5for hashing the cache keys.This changes the generated keys, so entries cached by an earlier version become
obsolete. If you wish to still use hashlib.md5 set the config
CACHE_HASH_METHOD = hashlib.md5. :pr:563CACHE_HASH_METHODto set the hash method used for the cache keys of@cachedand@memoize.CACHE_IGNORE_ERRORSis now used by every backend instead of onlySimpleCacheandFileSystemCache.delete_manymethod is now used from cachelib. A keythat does not exist counts as deleted, and with
CACHE_IGNORE_ERRORSset toFalseaRuntimeErroris raised if the key could not be deleted.@staticmethodand@classmethodwhen memoizing. :issue:
440CACHE_TYPEnames (null,simple,filesystem,redis,redissentinel,rediscluster,uwsgi,memcached,gaememcached,saslmemcachedandspreadsaslmemcached)@memoizeforced_updatecallbacks once per decorated functioncall instead of once while making the key and again before cache lookup.
:issue:
387is_staleoption to@cachedand@memoize. It is called on acache hit with the cached value. Unlike
forced_updateit uses the value itselfto check whether the cache is stale. Can be used in combination with
forced_update:issue:
392@cachednow caches anHTTPExceptionraised by the view (i.e. throughabort()).This exception will now be re-raises on a cache hit. Use
response_filter,to keep the exception out of the cache. :issue:
444@memoizecache-key collision when a parameter has a falsydefault (e.g.
0,"",False): calling with the default waskeyed the same as passing
None, returning the wrong cached result.:pr:
656@cachedand@memoizenow preserve the wrapped function'ssignature and expose
uncached,cache_timeout,make_cache_keydelete_memoizedto type checkers.@cached(response_hit_indication=True)appending a newafter_requestfunction to the app on every request.flask.stream_templateit previously returned a list of JSON strings insteadof the rendered template. :issue:
511__caching_id__never being usable.@memoizesilently ignored thatand ran the function uncached.
CACHE_FILE_HASH_METHODconfig option toFileSystemCacheto allowusing a different hash function for cache keys. :pr:
660pool_sizeandpool_blockingto makeMemcachedCachebackendsthread-safe. :pr:
663SimpleCachedocs as it's now thread-safe using anRLockfor alloperations. :pr:
663delete_memoizednow takes the instance from a bound method, socache.delete_memoized(obj.method, 1)deletes the cache forobj.method(1)instead of silently deleting nothing.The current behaviour by passing the instance keeps working as well.
:issue:
554{% cache %}Jinja tag no longer propagates backend errors. If thecache is unavailable, the block is rendered normally instead of raising,
matching the existing behavior of
@memoize. :issue:564:pr:565@memoizeinvalidating a function's entire cache by not updating thememoize version key's timeout. It is now refreshed each time an entry is written,
with that entry's own timeout. :issue:
531v2.4.1Compare Source
Released 2026-07-08
pallets_sphinx_themesfor the documentation.CachedResponse.__init__so it doesn't trigger mypy[no-untyped-call]in strict downstream codebases. :issue:
628@memoizeusesrepr(obj)(or
__caching_id__) for theself/clsidentity, not Python's:func:
id. :issue:555651v2.4.0Compare Source
Released 2026-04-17
intersphinx_mappingfor Sphinx 8 compatibility. :pr:599, :issue:598591626response_hit_indicationreturn True always. :pr:579, :pr:596, :issue:595, :issue:570FORWARDREFannotation format when introspecting decoratedfunctions so that
@memoize/@cachedwork withTYPE_CHECKING-only annotations on Python 3.14. :issue:636v2.3.1Released 2025-02-22
v2.3.0Released 2024-05-04
response_hit_indicationflag toCache.cacheddecorator for appending 'hit_cache' headers to responses, indicating cache hits.v2.2.0Compare Source
args_to_ignoreto not work withflask_caching.Cache.memoizedecorator when keyword arguments were used in the decorated function callv2.1.0Compare Source
Released 2024-10-08
flask_caching.utils.make_template_fragment_key. :pr:430Configuration
📅 Schedule: (in timezone Asia/Tehran)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.