See #1273156: How to tell if Views cache is being rebuilt during views_exposed_form's hook_form_alter()? for an explanation. Whatever patch exists here is the most current suggestion. I say suggestion because Views development is a bit scattered. You might be using view-6.x-3.x, you might be using views-6.x-2.12, you might be using views-6.x-2.12 with the crazy security patch. So take a look at the patch, copy the few lines in it and place it where necessary for your version of views.

Comments

R.J. Steinert’s picture

This patch is rolled from the the 6.x-2.12 tag with security patches.