If I have a custom module that maybe adds some fields, or reorders some data which is to be shown in the frontend: How do I tell boost, that the cached files should be deleted on the next cron run after I've made some changes?

1 Answer 1


First you need to set a flag which indicates that new fields are added. Can be a variable_set() or something similar thats stores values in DB whenever new fields are added.

In your hook_cron() you should check if the flag is set or not. If set clear Boost cache using boost_cache_clear_all(). Unset the flag once cache is cleared.

  • But I don't want to clear all the boost cache files. I want to mark some files for deletion.
    – yunzen
    Aug 22, 2012 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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