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.
Instead of having a custom drupal_static
in this function (\Drupal\sharethis\SharethisManager::sharethisIncludeJs
) IMHO this code should use a property on the class like $sharethisJS
and store the result of the calculation in there.
Comment | File | Size | Author |
---|---|---|---|
#7 | sharethisIncludeJs_should_cache_its_result-2769903-7.patch | 1.24 KB | mrinalini9 |
| |||
#3 | sharethisIncludeJs_should_cache_its_result-2769903-3.patch | 1.95 KB | guptahemant |
Comments
Comment #2
naveenvalechaComment #3
guptahemant CreditAttribution: guptahemant as a volunteer and at QED42 commentedI have created a patch to replace drupal_static with $sharethisJS variable. please review.
Comment #4
gg24 CreditAttribution: gg24 as a volunteer and at QED42 commentedHi @guptahemant,
This patch applies cleanly and I am able to see Sharethis service working fine.
The steps followed:
Hence works fine. Moving this to RTBC.
Thanks!
Comment #5
naveenvalechaPatch failed to apply
Comment #6
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commentedComment #7
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commentedRerolled patch for 8.x-2.x, please review.
Comment #8
Greg BoggsReroll looks good. Thanks Mrinalini!
Comment #10
naveenvalechaCommitted and pushed to 8.x-2.x