Skip to content

Commit

Permalink
Merge branch 'main' into release/2
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalvino committed Oct 19, 2022
2 parents 05df1ad + 3694b47 commit a9c64c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Release Notes
=============


2.2.0
=====

* Support Wagtail 4 and Django 4.1


2.1.1
=====

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
license="BSD license",
include_package_data=True,
packages=find_packages(),
install_requires=["wagtail>=3.0,<4.0"],
install_requires=["wagtail>=3.0,<5.0"],
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
Expand Down
2 changes: 1 addition & 1 deletion wagtailcache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
release = ["2", "1", "1"]
release = ["2", "2", "0"]
__version__ = "{0}.{1}.{2}".format(release[0], release[1], release[2])
__shortversion__ = "{0}.{1}".format(release[0], release[1])
2 changes: 2 additions & 0 deletions wagtailcache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class FetchFromCacheMiddleware(MiddlewareMixin):
def __init__(self, get_response=None):
self._wagcache = caches[wagtailcache_settings.WAGTAIL_CACHE_BACKEND]
self.get_response = get_response
self._async_check()

def process_request(self, request: WSGIRequest) -> Optional[HttpResponse]:
if not wagtailcache_settings.WAGTAIL_CACHE:
Expand Down Expand Up @@ -233,6 +234,7 @@ class UpdateCacheMiddleware(MiddlewareMixin):
def __init__(self, get_response=None):
self._wagcache = caches[wagtailcache_settings.WAGTAIL_CACHE_BACKEND]
self.get_response = get_response
self._async_check()

def process_response(
self, request: WSGIRequest, response: HttpResponse
Expand Down

0 comments on commit a9c64c5

Please sign in to comment.