Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 152.94 KB
MD5: 8039b183d1a94013842ba0bb5280e8f0
SHA-1: 1b22fd45340d23b1137880e917490991f3197233
SHA-256: 4441d0cbcb292713be55a38695631f6f1b739931c3dfae6d17837b3f1461a8a1
Download zip 349.45 KB
MD5: 774b6417e71e4e3692d4dc36111a3fa2
SHA-1: d7d5229806582f7553f3b46b56218a9e41e9e6c4
SHA-256: 1ddadf195e2a4af1f3c47b05c5c230b75f866b731fd1c5fe2af3db0f8b6ad390

Release notes

Long overdue release for Purge carrying various API changes and Drush 9 support as main feature. This release is the last beta before the codebase is deemed fully stable (and as a result, API changes will stop to happen).

Please don't upgrade blindly and test your preexisting setup well.

Please run drush cr to accommodate for the various API changes!

Mac OS users - Beware!

This release capitalizes filenames such as src/Plugin/Purge/Queue/numberOfItemsStatistic.php into NumberOfItemsStatistic.php, which seems to give issues on operating systems without case sensitive file systems such as Apple's Mac OS. The best way to remediate this is to run git config --global core.ignorecase false so that GIT will never ignore case changes like this one.

So make sure that the files under modules/contrib/purge/src/Plugin/Purge/Queue all start with capitals:

ls -l modules/contrib/purge/src/Plugin/Purge/Queue

...
NumberOfItemsStatistic.php
...
TotalFailedStatistic.php
TotalNotSupportedStatistic.php
TotalProcessingStatistic.php
TotalSucceededStatistic.php
...

If you don't, you will see errors like these (even after drush cr):
Error: Class 'Drupal\purge\Plugin\Purge\Queue\NumberOfItemsStatistic' not found in Drupal\purge\Plugin\Purge\Queue\StatsTracker->initializeStatistics() (line 101 of...

Edit: Acquia has added an entry about the issue on their knowledge base:
https://support.acquia.com/hc/en-us/articles/360036926373-Git-case-probl...

[8.x-3.0-beta9] - 2019-10-03

Added

  • Added .gitattributes to keep documentation out of built packages.
  • Added composer.json for integration with Composer-based workflows.
  • API: Annotation\PurgeTagsHeader::$dependent_purger_plugins to allow
    binding headers to purgers.
  • API: TagsHeaderInterface::isEnabled() which returns TRUE by default.
  • API: DiagnosticsServiceInterface::filterInfo, ::filterOk,
    ::filterWarnings, ::filterWarningsAndErrors, ::filterErrors
  • API: DiagnosticsServiceInterface::toMessageList()
  • API: DiagnosticsServiceInterface::toRequirementsArray() parameter
    $prefix_title.

Changed

  • Improvement: thousands of fixes to pass all these these standards checks:
    • phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md
    • phpcs --standard=AcquiaDrupalStrict
  • Improvement: PROJECTPAGE.md, README.md and new CHANGELOG.md.
  • Improvement: Drupal's status report now only shows warning and error
    diagnostics.
  • Improvement: Counter\Counter::set() only writes if the value changes.
  • Improvement: Queue\DatabaseQueue::numberOfItems() now builds the
    COUNT() OOP-style.
  • Improvement: Queue\StatsTracker::updateTotals() no longer maintains
    the ::numberOfItems() statistic.
  • Improvement: Queue\NumberOfItemsStatistic is now synced from
    QueueService::commit and nowhere else.
  • API: DiagnosticsServiceInterface::getRequirementsArray()
    --> ::toRequirementsArray()
  • API: DiagnosticsServiceInterface::getHookRequirementsArray() removed
  • API: `DiagnosticCheckInterface::getHookRequirementsArray()`` removed
  • API: Queue\numberOfItemsStatistic --> NumberOfItemsStatistic
  • API: Queue\totalProcessingStatistic --> TotalProcessingStatistic
  • API: Queue\totalSucceededStatistic --> TotalSucceededStatistic
  • API: Queue\totalFailedStatistic --> TotalFailedStatistic
  • API: Queue\totalNotSupportedStatistic --> TotalNotSupportedStatistic

Fixed

  • #2795131: purge_tokens should not set Max-Age to 0.
  • #2795131: codestyle in the tests got overhauled.
  • #2795131: Drush commands ported to Drush 9, tested extensively and
    UX improved.
  • Invalidation\WildcardPathInvalidation declaration issue
Created by: nielsvm
Created on: 3 Oct 2019 at 13:06 UTC
Last updated: 8 Oct 2019 at 13:08 UTC
Bug fixes
New features

Other releases