I'm wondering whether a patch for clearing views cache would be considered.

It's quite annoying for many people that you can't clear the cache for views via drush easy.

Comments

moshe weitzman’s picture

Assigned: Unassigned » moshe weitzman

I'll add a hook here where Views can insert itself into the list.

moshe weitzman’s picture

Project: Drush » Views (for Drupal 7)
Version: » 7.x-3.x-dev
Component: Core Commands » Code
Assigned: moshe weitzman » Unassigned

Hook added

esmerel’s picture

Assigned: Unassigned » dawehner

Assigning over to dereine since it was his idea in the first place :)

dawehner’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new378 bytes

Here is a patch

dawehner’s picture

Thanks for adding the hook.

moshe weitzman’s picture

Status: Needs review » Needs work

sorry, I just renamed the hook in drush so you want to use views_drush_cache_clear() now.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new384 bytes

Here is the new version.

dawehner’s picture

Assigned: dawehner » Unassigned

This is really straighforward, so it could be commited.
The question is whether views want's to implement such a "contrib"-api. Thumps up from my side.

bojanz’s picture

+1, definitely.

I get asked about this all the time at work.

moshe weitzman’s picture

Views already has some limited devel integration (or used to have it). I think this makes sense as well.

dawehner’s picture

Status: Needs review » Fixed

#awesome

This is so good and saves hours of going to admin/buiild/views/tools

Commited to the 7.x branch. Thanks to everyone who worked on this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.