-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring to provide middleware (#12)
* Refactoring to provide middleware * Adding nocache_page decorator
- Loading branch information
Showing
7 changed files
with
286 additions
and
122 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ Release Notes | |
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
v0.5.0 | ||
v0.4.0 | ||
v0.3.0 | ||
v0.2.1 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
wagtail-cache 0.5.0 release notes | ||
================================= | ||
|
||
* Added new middleware. This is now the recommended way of using Wagtail Cache. See :doc:`/getting_started/install`. | ||
* The middleware will additionally cache 404 and 301/302 responses, lightening the load on your database. | ||
* The middleware will intelligently handle CSRF tokens and only cache those responses based on the cookie. | ||
So the new middleware should completely eliminate any CSRF token issues while also being able to cache those pages. | ||
* The middleware now processes all cacheable requests/responses, not just wagtail pages. To revert to previous | ||
behavior, continue using the decorator. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
author="CodeRed LLC", | ||
author_email='[email protected]', | ||
url='https://github.com/coderedcorp/wagtail-cache', | ||
description="A simple page cache for Wagtail using the Django cache middleware.", | ||
description="A simple page cache for Wagtail based on the Django cache middleware.", | ||
long_description=readme, | ||
long_description_content_type='text/markdown', | ||
license="BSD license", | ||
|
This file contains 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
Oops, something went wrong.