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
API calls are currently being made in savings_united_preprocess_block()
, which are uncached.
Proposed resolution
Implement global caching by default that can be altered by the site (e.g. cache per term, etc).
This could be achieved using cache tags to generate the cache keys.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3021272-2-caching.patch | 2.02 KB | davidgrayston |
Comments
Comment #2
davidgrayston CreditAttribution: davidgrayston at Dennis commentedPatch attached - opted for the simpler approach of caching per API request URL
Comment #3
davidgrayston CreditAttribution: davidgrayston at Dennis commentedComment #4
davidgrayston CreditAttribution: davidgrayston at Dennis commentedComment #5
guardiola86 CreditAttribution: guardiola86 commentedThanks, your patch works well. I'll merge it.
Comment #6
guardiola86 CreditAttribution: guardiola86 commented