I think it would be a great feature to add to the admin page a button to clear the cache that any admin could use. Either a single button that will clear all caches, or some way to selectively clear individual caches.
I am continually trying to explain to users how to clear the cache to solve problems with CCK and Views. The devel module provides a block that will do it, but in most cases these users don't want or need the Devel module, they just need a simple way to clear the caches.
We would need to think through access control to that button and how aggressive it can or should be, but it would be a huge timesaver on some issue queues if such a button was available, and this seems like something that really ought to be in core.
Comments
Comment #1
robertdouglass commentedyes, and the hook_devel_caches works magnificently for letting modules register their cache tables. It should be renamed hook_caches, but I think module developers will happily do the update. There might be other uses for hook_caches as well, such as assisting in configuring memcache clusters.
Comment #2
dwwyeah, this sounds very good to me. i might even find time to roll a patch, but if anyone else is inspired to roll one first, please do! ;)
Comment #3
RobRoy commentedWas just talking with harking on IRC on how we needed an easy way for pathfilter users to clear the cache when they update their base_url (move their site). Would be a nice addition as this is a heavy support request for new developers.
Comment #4
Steve Dondley commentedThis was included in drupal 6.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.