我注意到在Drupal 8中有一些缓存块的选项:
我想知道这些选项是否存在于带有模块的Drupal 7中?这个功能已经移植了吗?还是从一开始就是一个控制模块?
发布于 2015-11-16 13:48:56
不,这是不可能的。见https://api.drupal.org/api/drupal/modules%21block%21block.api.php/function/hook_区块_info/7's DRUPAL_CACHE_CUSTOM和https://www.drupal.org/developing/api/8/cache/contexts。
DRUPAL_CACHE_CUSTOM
https://drupal.stackexchange.com/questions/152659
相似问题