Easing the pain when you need to flush...Drupal's cache.

Flushing Drupal's cache on a large site can feel like you're waiting to takeoff on the tarmac at JFK. The delay comes from the fact that when you clear Drupal's cache, it clears everything. Most of time you just want to flush the cache for specific object on a page.

The 'Flush page cache' module solves this problem by flushing only the cached objects for a single page. Additionally, you can define custom objects and cache tables to be cleared on specific pages.


  • Many button placement options including: in the page footer, with a block, or if you use the Administration Menu module, a link is included there as well.
  • The ability to define specific cache objects to be cleared when flushing page caches.
  • Varnish integration, which also purges the cached page from Varnish.

Use Cases

  • You have nodes nested in views nested in a panel page. You've edited a node that's displayed on this page, but you want the change to be seen immediately.
  • You have a large team of non-technical content editors who frequently run into the scenario above and you want to give them an easy, one-button solution to their content being updated in the lists they manage.
  • You've just cleared the entire website's cache through the normal means and for whatever reason, a few pages are rendered and cached in a broken state.

Recommended Modules

  • Administration Menu: Theme-independent administration interface.
  • Memcache: High performance integration with memcache.
  • Varnish: Provides integration with the Varnish HTTP accelerator.


  1. Download and enable the flush_page_cache module in the usual Drupal way.
  2. Setup module by following the included README.txt file. For more information on Drupal's extensible cache functionality, see this article.
  3. Give the appropriate permissions to the appropriate roles on the permissions page. The "flush page cache" permission allows a user to see the button and perform the action and should only be given to trusted roles.
  4. Optionally, you may configure additional settings on the form located at 'Administer > Site configuration > Flush_page_cache' (admin/settings/flush_page_cache). See the README.txt file for what you may want to add in the "custom settings" area on this page.
  5. Optionally, you may place the "Flush page cache" block on your pages. It's recommended you only allow this for trusted roles. It may be useful to style this block to a fixed position on the page for ease of use.

Project Information