Install
Works with Drupal: 8.xUsing Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Hereby I'm happy to release version 8.x-3.0-beta5
of the Purge module, a project in development for over two years and getting closer to the point where it can be used in production environments. Usage statistics have rapidly climbed in the last couple of weeks and brought us into the 500 installations range, which is quite high for a beta module.
Although several users have reported to use it in production, I would like to stress that my confidence isn't strong enough to recommend everybody to do this. Please be also warned that - as part of the beta series - some inconveniences, API breakage or upgrade requirements might still occur in following versions. Obviously this is kept to an absolute minimum, as stability goes above everything else.
I would like to thank everybody involved in testing, contributing and providing feedback - without you this project would remain beta forever!
Thanks,
Niels
Regressions and/or upgrade impact
- This upgrade empties your queue, please run
drush p-queue-empty
. - Issue #2692523: the
Purge-Cache-Tags
header has been dropped, and moves to the purge_purger_http project (as a submodule). The reasoning here is clear and in line with the strategy of the purge module for the future: HTTP headers are implementation details and the responsibility of purger modules, not a core task (and technology-assumption) for the core project. Users who need customized configurations, already likely use the generic HTTP purger while others will use submodules that already introduce their own headers (and remove them too).
New Features
- New diagnostic check:
\Drupal\purge\Plugin\Purge\DiagnosticCheck\MaxAgeCheck
. - New diagnostic check:
\Drupal\purge\Plugin\Purge\DiagnosticCheck\PageCacheCheck
. - Issue #2791387 by nielsvm: A new configurable block "
Purge this page
" has been added to allow administrators to quickly purge by URL, path or clear "everything". Alternatively, the block can also be configured to queue the items instead of direct execution. TagsHeaderInterface
now also extendsContainerFactoryPluginInterface
in order forcreate::
injection support.
Fixes / Improvements
- All tests pass on local machine:
4430 passes, 0f, 0e
(testing with d.o testbot continues.). - Compliance with pareview.sh reviews improved massively (but isn't done yet).
- The "
page cache maximum age
" dropdown on the performance tab, contains a lot more serious options now. - Improved
::testIteration()
tests onKernelServiceTestBase
derivatives, by introducingassertIterator()
. - Issue #2706567 by lahoosascoots, nielsvm, arknoll:
QueuerService
andProcessorsService
assumes there are plugins in CMI. Tests\Queue\PluginTestBase
now tests the paging logic of queue plugins.- Issue #2795131 has rewritten the entire database queue backend, which now automatically deploys a new database table
purge_queue
. Please note that upgrading users will see their queues wiped out and are required to rundrush p-queue-empty
to also reset queue statistics. - Issue #2744215 by nielsvm: diagnostic errors will now get logged for new installations, old installations will need to check "error" for the "diagnostics" log channel in their logging configurations.
- Issue #2755019 by neerajsingh, nielsvm: Remove @file tag docblock
- Issue #2787993 by slasher13, nielsvm: Allowed memory size of 268435456 bytes exhausted
- Issue #2724217 by davidwbarratt, TravisCarden, nielsvm: Incompatibility with Monolog
- Issue #2744135 by joshi.rohit100, davidwbarratt, nielsvm: PurgerCapacityDataInterface::hasRuntimeMeasurement() further clarified.