Comment 1 for bug 931479

Revision history for this message
Curtis Hovey (sinzui) wrote :

Oh This is about ProductLicense, not CommercialSubscription. +voucher has always had a performance problem because the saleforce voucher data is slow to collect, the data is cached. When a voucher is applied to add the commercial subscription to the projects, the view issues a next_url signal to itself to reload the data cached by setUpFields and SetUpWidgets. This breaks because I switched the Commercial Admin query to (not the query used by most users) use productset.search which is fast and has cached goodness. next_url is in conflict with the model cache which does not want to reload the object.

There are two paths to resolve the conflict. Clear the cache on the model, or clear the cache on the view. I favour the view because When a voucher is applied, the only data invalid in the form is the voucher in its vocab.