0

I noticed in Drupal 8 there are options to cache a block:

block cache settings

I was wondering if these options exist in Drupal 7 with a module? Has the feature been back ported? or was it a contrib module to begin with?

3
  • 1
    The D7 version is Block Cache Alter I think. It doesn't have contextual caching, I believe that's very new
    – Clive
    Mar 24, 2015 at 12:18
  • @David Barratt Where, in the Drupal Web Admin UI, are the Drupal 8 Block Cache settings shown in the screen - i.e what would the general URL path be, please? Jan 9, 2019 at 10:37
  • Question about location of your screenshot of block caching asked here: drupal.stackexchange.com/questions/274874/… Jan 9, 2019 at 11:09

1 Answer 1

0

No, it's impossible to backport. See https://api.drupal.org/api/drupal/modules%21block%21block.api.php/function/hook_block_info/7's DRUPAL_CACHE_CUSTOM and https://www.drupal.org/developing/api/8/cache/contexts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.