Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
Importing/migrating data
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Jan 2021 at 10:57 UTC
Updated:
23 Dec 2021 at 19:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersComment #4
wim leersI cannot reproduce those failures. Re-testing against 9.1 in case that makes a difference.
Comment #5
wim leersAh, right, this requires #3190815: Source count caching broken: impossible to enable source count caching for SqlBase-based source plugins (plus, unneeded cache I/O) 😬
Comment #6
wim leersComment #7
damienmckennaThanks for the patch and improvement, I look forward to the core change being committed so we can take advantage of this.
Comment #8
wim leers@DamienMcKenna: wow that was fast! 😄
Nit: should be
protected.Comment #9
wim leers#3190815: Source count caching broken: impossible to enable source count caching for SqlBase-based source plugins (plus, unneeded cache I/O) landed! 🥳
Comment #10
damienmckennaThis would break compatibility with 8.9, so let's see if we can have both functions.
Comment #11
wim leersShould still be changed to
protected😅Comment #12
damienmckennaDoh.
Comment #13
wim leersFYI: the two failures in #12 on PHP 8 + Drupal 9.2 are the same two that exist in HEAD: https://www.drupal.org/pift-ci-job/2057145.
Also, the change in #10 + #12 compared to #12 breaks the performance improvement that #3190815: Source count caching broken: impossible to enable source count caching for SqlBase-based source plugins (plus, unneeded cache I/O) made possible.
If you want to support both simultaneously, you'll need to make
count()smarter: you'll need to update its logic to be conditional depending on the Drupal core version…Comment #14
wim leersWith #3190818: Allow source counts to be cached: implement ::doCount() instead of ::count() also committed … and with time having passed … I'm wondering if you'd be willing to commit this without BC layer for Drupal 8.9, @DamienMcKenna?
Comment #15
damienmckennaWith Drupal 8 no longer supported, I think this can go in the next release.
Comment #17
damienmckennaCommitted. Thank you.