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.
It seems illogical to to start working on $remote_file_dir and $relative_path in the hook_init function before checking stage_file_proxy_origin.
Does this patch sense?
Comment | File | Size | Author |
---|---|---|---|
stage_file_proxy-First_check_stage_file_proxy_origin.patch | 1.78 KB | helmo | |
Comments
Comment #1
gregglesI definitely see a case for moving the $remote_file_dir and $relative_path code to inside the if ($server) block, but I'm less sure about the other.
Leaving as needs review for other folks to weigh in.
Comment #2
Dave ReidThis would be resolved by #2351485: Use hook_file_url_alter() to fetch files (fixes incompatibility with picture module) as well which speeds up code execution if stage file proxy was not configured, but enabled.
Comment #3
helmo CreditAttribution: helmo commented@Dave Reid: thanks, lets continue there.