Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Add the right Cache tags.
https://www.drupal.org/developing/api/8/cache
When the config form is saved it should be possible to delete only the shariff block cache !?
Comment | File | Size | Author |
---|---|---|---|
#2 | add_cache_api_integration-2663614-2.patch | 962 bytes | criz |
Comments
Comment #2
crizHere a patch that tries to implement the Cache API. Not tested so far. Could use some feedback.
Comment #3
crizAdded also a cache max-age of one hour, because when sharing counts are displayed the block needs to be updated regularly.
Tested it and at least updating the block after changing the config form works.
Committed: http://cgit.drupalcode.org/shariff/commit/?id=4278374