Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Follow-up from #2642764: Speed up via shortcutting token file_entity_file_load since it's based on the code there.
alt/title default to not having token replacement, so when those are left as the default, we can skip token_replace(). This saves a lot of time especially with multiple AJAX file uploads.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#11 | optimize_title_alt-2650804-11.patch | 1.01 KB | joseph.olstad |
Comments
Comment #2
catchAnd the patch.
Comment #3
catchComment #4
Fabianx CreditAttribution: Fabianx at Tag1 Consulting commentedA new patch for a new patch in the other issue.
Comment #5
marco CreditAttribution: marco at Tag1 Consulting commentedreroll
Comment #6
joseph.olstadthe related patch in file_entity was committed, so looks like we should have a look at this now.
Comment #11
joseph.olstadrerolled again
Comment #13
joseph.olstadmarco , can you fix this please?
Call to undefined function file_entity_replace_title()
Comment #14
joseph.olstadNot sure if this will help.
try it
Comment #15
joseph.olstadOk, this patch will start working and passing testing once a tagged release of file_entity with that function is made.
it requires file_entity 7.x-2.23 which has not yet been tagged.
the said function is not present in 7.x-2.22
Comment #16
joseph.olstadComment #17
joseph.olstadpatch 11 is the good one.
Comment #18
joseph.olstadto finish this off, have to first publish file_entity 7.x-2.23 (soon) as well as the 7.x-3.x branch tag that as well
then have to create a hook_requirements to make sure that file_entity has been updated to 7.x-2.23 or 7.x-3.0-tag or higher
Comment #19
joseph.olstadre-testing this, a tagged release of file_entity is out, these errors should go away, however the patch should have the hook_requirements checks checking for a version of file_entity equal to or greater than (equal or newer than) the current release.
Comment #20
joseph.olstadI don't have time to finish this patch right now but perhaps someone else does.
Patch 11 is the rerolled one, base the next patch off of patch 11.
Comment #21
joseph.olstadComment #22
joseph.olstadHad to remove the related code from file_entity
still not ready.