Drupal Technical
[SOLVED] [Drupal Boost] How to disable Boosts database and File Cache from another module?
Many Drupal users using Boost wanted to include options in their custom modules to access and clear the Boosts database and file cache. If you are facing the same situation in your Drupal site and would like to know how to disable Boosts database and File Cache from another module then read on to know how.
Steps
- If you simply want to clear the Boost file cache you could use the following function in your module.
boost_cache_clear_all();
- Additionally you could reuse the code from the following function to remove all the entries in the database and the files cached by Boost.
boost_clear_cache_submit();
- You can also utilize the following Boost function to clear the expired and outdated files.
boost_cache_expire_all();
- There is also another method to clear the boost cache by setting the boost_enabled variable as follows.
- If you want to enable Boost again you can use.
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.
Reference: http://drupal.org/node/865252