|
| 1 | +============= |
| 2 | +Release Notes |
| 3 | +============= |
| 4 | + |
| 5 | +2.1.0 |
| 6 | +===== |
| 7 | + |
| 8 | +This release massively improves caching for sites which employ trackers such as |
| 9 | +Google Analytics, Facebook Pixel, HubSpot, etc. |
| 10 | + |
| 11 | +* Add setting to strip cookies from requests and remove ``Vary: Cookie`` headers |
| 12 | + (except for Django session and CSRF token) to maximize caching opportunities. |
| 13 | + This is ON by default! See :ref:`WAGTAIL_CACHE_IGNORE_COOKIES`. |
| 14 | + |
| 15 | +2.0.0 |
| 16 | +===== |
| 17 | + |
| 18 | +* Includes everything from 1.1.0 released in tandem. |
| 19 | + |
| 20 | +* Includes new SVG icon in settings panel. Previously this icon was either the |
| 21 | + cog, or the lighthing bolt if ``wagtailfontawesome`` was installed. |
| 22 | + |
| 23 | +* Supports Wagtail 3 and only Wagtail 3. Wagtail 2 support will be maintained in |
| 24 | + the 1.x series as needed. |
| 25 | + |
| 26 | + |
| 27 | +1.2.0 |
| 28 | +===== |
| 29 | + |
| 30 | +This release massively improves caching for sites which employ trackers such as |
| 31 | +Google Analytics, Facebook Pixel, HubSpot, etc. |
| 32 | + |
| 33 | +* Add setting to strip cookies from requests and remove ``Vary: Cookie`` headers |
| 34 | + (except for Django session and CSRF token) to maximize caching opportunities. |
| 35 | + This is ON by default! See :ref:`WAGTAIL_CACHE_IGNORE_COOKIES`. |
| 36 | + |
| 37 | + |
| 38 | +1.1.0 |
| 39 | +===== |
| 40 | + |
| 41 | +New features |
| 42 | + |
| 43 | +* Show list of all URLs cached in the Wagtail Admin. |
| 44 | + |
| 45 | +* Support purging individual URLs (via regular expressions) from the cache. See |
| 46 | + :ref:`purge_specific_urls`. |
| 47 | + |
| 48 | +* Ignore tracking querystring parameters by default. This means that pages with |
| 49 | + unique tracking parameters will still be cached and/or served from the cache |
| 50 | + regardless of those parameters. This should massively improve performance on |
| 51 | + sites with heavy marketing activity, but can potentially introduce breakage if |
| 52 | + you have server-side logic that uses tracking codes via the querystring. |
| 53 | + |
| 54 | + The list of querystrings to ignore can be customized, or the feature can be |
| 55 | + completely disabled. See Django setting :ref:`WAGTAIL_CACHE_IGNORE_QS`. |
| 56 | + |
| 57 | +Bug fixes |
| 58 | + |
| 59 | +* Previously, request with methods except GET and HEAD were never cached, even |
| 60 | + if you override the caching decision with ``is_request_cacheable`` hooks. |
| 61 | + These requests are still not cached by default, but *can be cached* if you |
| 62 | + override the caching decision. Please use caution when overriding caching |
| 63 | + decisions using :doc:`these hooks </getting_started/hooks>`. |
| 64 | + |
| 65 | +Maintenance |
| 66 | + |
| 67 | + |
| 68 | +* Add support for Django 4. |
| 69 | + |
| 70 | +* Supports Wagtail 2 only. |
| 71 | + |
| 72 | +* New shiny documentation based on the Wagtail Sphinx theme. |
| 73 | + |
| 74 | + |
| 75 | +1.0.2 |
| 76 | +===== |
| 77 | + |
| 78 | +* Fix typo in Wagtail Cache settings page. |
| 79 | + |
| 80 | +* Updated unit tests for Wagtail 2.12. |
| 81 | + |
| 82 | +* Apply ``black`` formatting to codebase. |
| 83 | + |
| 84 | +.. note:: |
| 85 | + |
| 86 | + Wagtail Cache may not work correctly with |
| 87 | + ``wagtail.core.middleware.SiteMiddleware`` or |
| 88 | + ``wagtail.contrib.legacy.sitemiddleware.SiteMiddleware`` on Wagtail 2.9 and |
| 89 | + newer. `Follow these instructions to replace SiteMiddleware |
| 90 | + <https://docs.wagtail.io/en/stable/releases/2.9.html#sitemiddleware-and-request-site-deprecated>`_. |
| 91 | + |
| 92 | + |
| 93 | +1.0.1 |
| 94 | +===== |
| 95 | + |
| 96 | +* Support Django installations where ``AuthenticationMiddleware`` is not enabled. |
| 97 | + In this situation, it will behave the same as if no user is logged in. |
| 98 | +* Packaging and documentation cleanup. |
| 99 | + |
| 100 | + |
| 101 | +1.0.0 |
| 102 | +===== |
| 103 | + |
| 104 | +There are no functionality changes for this release. However at this point |
| 105 | +the package is mature and well tested enough to designate a 1.0 version. |
| 106 | + |
| 107 | +* Support Django 3.0. |
| 108 | +* Add unit tests, type hints, and continuous integration. |
| 109 | + |
| 110 | +As a result of the unit tests, a few minor changes have been implemented under |
| 111 | +the hood: |
| 112 | + |
| 113 | +* Refactored ``wagtailcache.settings.wagtailcache_settings`` to be an object, |
| 114 | + similar to Django ``settings``, rather than a dictionary. |
| 115 | +* Add ``wagtailcache.cache.Status`` and ``wagtailcache.cache.CacheControl`` |
| 116 | + enums to replace hard-coded string values. |
| 117 | +* Always set a "Cache-Control" header when skipping the cache to signal the |
| 118 | + caching decision to upstream caches. |
| 119 | + |
| 120 | + |
| 121 | +0.5.2 |
| 122 | +===== |
| 123 | + |
| 124 | +* Add new management command `clear_wagtail_cache` to clear cache. |
| 125 | +* Minor code cleanup. |
| 126 | + |
| 127 | + |
| 128 | +0.5.1 |
| 129 | +===== |
| 130 | + |
| 131 | +* Ignore ``Vary: Cookie`` header when caching 301, 302, 304, and 404 response codes. Always served cached responses regardless of cookies. |
| 132 | + |
| 133 | + |
| 134 | +0.5.0 |
| 135 | +===== |
| 136 | + |
| 137 | +* Added new middleware. This is now the recommended way of using Wagtail Cache. See :doc:`/getting_started/install`. |
| 138 | +* The middleware will additionally cache 404 and 301/302 responses, to lighten the load on your database. |
| 139 | +* The middleware will intelligently handle CSRF tokens and only cache those responses based on the cookie. |
| 140 | + So the new middleware should completely eliminate any CSRF token issues while also being able to cache those pages. |
| 141 | +* The middleware now processes all cacheable requests/responses, not just wagtail pages. To revert to previous |
| 142 | + behavior, continue using the decorator. |
| 143 | + |
| 144 | + |
| 145 | +0.4.0 |
| 146 | +===== |
| 147 | + |
| 148 | +* Added new ``is_response_cacheable`` hook. See :doc:`/getting_started/hooks`. |
| 149 | +* Never cache responses with a ``Cache-Control`` header containing ``no-cache`` or ``private``. |
| 150 | +* New ``WagtailCacheMixin`` to support Page models with privacy or view restrictions. See :doc:`/getting_started/install`. |
| 151 | +* Documentation updates and clarification. |
| 152 | + |
| 153 | + |
| 154 | +0.3.0 |
| 155 | +===== |
| 156 | + |
| 157 | +* Add support for ``django-redis`` cache backend. See :doc:`/getting_started/supported_backends`. |
| 158 | +* Add __init__.py in ``templatetags`` directory. |
| 159 | +* ``is_request_cacheable`` hook now passes the previous caching decision in as an argument. See :doc:`/getting_started/hooks`. |
| 160 | +* Documentation updates. |
| 161 | + |
| 162 | + |
| 163 | +0.2.1 |
| 164 | +===== |
| 165 | + |
| 166 | +* Fixed packaging issue that resulted in HTML templates missing from 0.2.0 pip package. |
| 167 | + |
| 168 | + |
| 169 | +0.2.0 |
| 170 | +===== |
| 171 | + |
| 172 | +* Moved ``cache_page()`` and ``clear_cache()`` from ``wagtailcache`` to ``wagtailcache.cache``. |
| 173 | +* New documentation! https://docs.coderedcorp.com/wagtail-cache/ |
| 174 | + |
| 175 | + |
| 176 | +0.1.0 |
| 177 | +===== |
| 178 | + |
| 179 | +* Initial release |
0 commit comments