[SOLVED][Drupal Boost] How to make Boost cache the HTML of custom modules?

| | 1 min read

Many Drupal users wanted to know how to make Boost cache the HTML output of their custom modules. If you are a Drupal user facing the same issue in your Drupal site and would like to know how to make Boost cache the HTML of some of your custom modules then read on to find out the solution.

Here is the method to let Boost cache the output of your custom modules

  • Locate the following functions inside boost.module
    • function boost_transform_url()
    • function boost_is_cacheable()
  • Use the above functions in caching the HTML of your module
  • Also check if you need to use the hook_boost_is_cacheable() function which can be found on the line 534.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.