I'm not sure if this problem is due to a problem with views caching in general, compatibility with the views content cache module, or a bad mix between caching, js, and quicktabs. I've created a basic VBO view for deleting user generated content with only a Delete button. This is nested inside a view style tab within quicktabs. It works as expected until I enable views caching on the view. The form renders fine, but clicking the delete node button does not delete the node. I don't absolutely need the caching, but it would be helpful as there are 7 tabs, one for each content type the user can manage. Any help would be great.
Comments
Comment #1
infojunkie CreditAttribution: infojunkie commentedThanks for your report. I was able to reproduce this issue with the stock VBO and caching turned on.
Comment #2
KeyboardCowboyI was also able to replicate this issue, though not by choice. :)
For what it's worth, I was able to move through each step of the form only when I used Devel to clear the cache between each step, which makes sense since it is a views caching issue.
For me, when I submit the form, it simply takes me back to the view, no errors reported. I've have some experience with the Form API, and my guess is that the form token or some internal part of the form is being cached with the view.
Hope that helps.
Comment #3
Shane Birley CreditAttribution: Shane Birley commentedI ran into this recently. I believe the issue is the same:
When nodes are selected, they are not deleted. Part of the nodes are have imagecache elements in them and the images are removed but the nodes themselves are not removed.
Comment #4
tomhung CreditAttribution: tomhung commentedWe also have this issue.
VBO: 7.x-3.0-rc1
Views Content Cache: 7.x-3.x-dev
Greg
Comment #5
azinck CreditAttribution: azinck commentedAlso having this issue, but I think it's tied to *any* Views caching plugin. Seeing it with Views Content Cache and Views' built-in time-based cache.
Comment #6
bojanz CreditAttribution: bojanz commentedVBO can't work with the views cache on (it's architecturally impossible). Disable the cache.
Comment #7
jweirather CreditAttribution: jweirather commentedIs this still true in VBO 7.x? Turn off views content cache?
Comment #8
azinck CreditAttribution: azinck commented@jweirather: Yes, that's correct. VBO won't work with Views caching in 7.x.
Comment #9
kopeboy CreditAttribution: kopeboy as a volunteer commentedwow
Maybe document this?
was not so easy to find.. and it's quite a big thing :/
Comment #10
joelpittetHaven't dug into the architectural problem yet but I can't see why caching wouldn't work if we just cleared the views cache for the view CID after delete?
Reopening to see if someone wants to try it.
Comment #11
Alex Bukach CreditAttribution: Alex Bukach commentedThe issue seems to be caused by Views module itself, please check https://www.drupal.org/node/2354809.
Comment #12
giorgio79 CreditAttribution: giorgio79 commentedI was able to circumvent this form issue by disabling "Rendered output" caching, so only the query result is cached.