1

Drush will allow you to selectively clear caches. CSS/JS or views for example.

Is there a way to do this via the admin interface, or a contrib module to do it? I don't have access to drush on a server and the cache rebuild is not reliable so it would be nice to just clear the cache bin that I need to.

3

In D6 install the admin menu. By clicking on the favicon on the left hand side of the menu you can clear all/seleted caches.

| improve this answer | |
  • Thanks, I'd forgotten about that. I'll keep open as I may not be able to use admin menu. – Jeremy French Jun 17 '11 at 11:54
  • how about in D7? I'm not sure, but isn't this also built into the "admin menu" provided in core? – Chaulky Jun 17 '11 at 14:29
1

I usually just add a item somewhere in the admin menu, and create my own callback that does cache_clear_all on the table I want. Normally I do this when I have my own cache table in a custom module, so this gets lumped with all the other admin menu entries for the module.

| improve this answer | |
1

In Drupal 7 there is a new shortcut menu; simply add a shortcut to the performance page.

| improve this answer | |
  • If you are using 6 you can also set up some actions to clear the cache bins with rules. So if a user creates content and you cache is not cleared for another hour as part of the final step in the Rules you can clear your cache. – BigEd Jun 20 '11 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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