jsmestad/pivotal-tracker — Issue #40: caching problem
Author: jjb
Created: 2011-11-15 05:45:01+00:00
State: open

Hi -- I'm a new user, I haven't looked into the code but I observed this behavior:

>> project.stories.all(:story_type => ['bug'], :includedone => **false**).count
=> **37**
>> project.stories.all(:story_type => ['bug'], :includedone => **true**).count
=> **114**
>> project.stories.all(:story_type => ['bug'], :includedone => **true**).count
=> **37**

So either on the third request it's going back to something cached from the first request, or for some strange reason the `:includedone` flag is getting ignored. If I do another request with `:includedone => false`, the cache is busted or the problem is otherwise fixed -- it will say 37, and then a subsequent call with `true` will say 114, but then the next call with `true` will say 37 again. (in other words, the series you see above will repeat itself exactly).