Is there a way to run Drupal 7 in a "non-cache" mode while developing new modules? My specific need is to turn off any caching of modules and/or module information during development so I don't need to clear the 开发者_JS百科cache when I make my changes, but generally when learning a new system I prefer its internal cache be off since I haven't yet learned what changes require a cache clearing, and what don't (i.e. "Am I doing this wrong, or are the old results just cached?"
Also, is there a way to quickly clear out the Drupal cache from the command line (instead of having to use the application UI in the performance section)
Install Drush and run drush cc all
on the command line.
And/or install Admin Menu and hover over the Drupal icon in the top left corner, then on "Flush all caches".
And finally you could install the Devel module and check the box that reads "rebuild the cache registry on each page load."
See http://drupal.org/node/797346.
Btw, already answered this some time ago at How do I completely disable cache?
精彩评论