When using views 4.7-cvstag and profile module with drupal 4.7-cvstag.

When a view is created and saved the field list from the profile is cached in the cache table. If the user changes fields or adds new fields in the profile module they do not appear in the views drop-down menus until the cache is cleared.

Saving the view, deleting the view does not help. New views have the same problem. Only clearing the cache table or uninstalling and reinstall the views module shows the new profile fileds.

Comments

merlinofchaos’s picture

Simply visiting the modules page and clicking submit should be enough to clear Views' cache. Beyond that, last I checked it's actually very hard to find a way to invalidate the cache when profile fields are added or changed. This kind of sucks.

eriksays’s picture

I don't know if this is related; however ---

I am using Views to search and filter users based on their profile settings.

However, new users are not showing up in the results page.

I try to fix by going in to Administer > Modules and hitting submit. no fix.

any suggestions on what may be happening here?

eriksays’s picture

you can ignore my comment earlier.

discovered users were not showing up in views until they added content to the system (blog,image,etc.)

scroogie’s picture

That is because Views is node based, you could use the usernode module to fix that.

HorsePunchKid’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev

Version bump; hoping this is appropriate. This bug still is affecting my Drupal 5.1 / Views 5.x-1.4-2rc1 site. At a minimum, some kind of link to wipe the cache and a suggestion for users to do that should be present.

merlinofchaos’s picture

The -dev version contains a link to wipe the cache, in fact.

There is a way to fix this for real using form_alter, but that doesn't work well with Views' philosophy unfortunately.

merlinofchaos’s picture

Status: Active » Fixed

I put in a test fix for this; will show up in 1.6-beta5

Anonymous’s picture

Status: Fixed » Closed (fixed)