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 !?

CommentFileSizeAuthor
#2 add_cache_api_integration-2663614-2.patch962 bytescriz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

criz created an issue. See original summary.

criz’s picture

Status: Active » Needs review
FileSize
962 bytes

Here a patch that tries to implement the Cache API. Not tested so far. Could use some feedback.

criz’s picture

Assigned: Unassigned » criz
Status: Needs review » Fixed

Added 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

  • 4278374 committed on 8.x-1.x
    Issue #2663614 by criz: Drupal 8 Cache API integration
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.