We have a home page (Drupal 7) on which we have a block that we want to cache for only 1 minute while the rest of the page can be cached longer. We are using Akamai and Varnish for this.

We implemented this block as a module and it properly implements the hook hook_block_view(). Once this module is deployed it shows up nicely in the Blocks area and then I can drop it in one of the regions on the home page.

So I was hoping that we could create a URL for this block that we can use to render its contents on the home page, and provide this URL to varnish and tell it to not to cache anything below this URL for more than a minute.

closed as unclear what you're asking by kiamlaluno Apr 21 '17 at 9:34

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.