Stale cached plans LIST via API and CG UI itself

Dan Kamins's Avatar

Dan Kamins

07 Feb, 2018 12:08 AM

Hello -

We modified about a dozen of our Plans in succession (changing tracked item overage charges) using the CG admin UI. When we edit the Plans themselves in the UI, we see the changes. When we view an invoice, we see the new rate as well.

HOWEVER the list of plans -- both as we see via API as well as the CG UI shows (https://www.getcheddar.com/admin/plans/get) is showing the stale data from before the change. About 5-10 minutes have passed so far -- at least enough to observe it, verify it multiple times, and write this post.

This seems to be a new behavior, as in the past we have always seen the updates reflected instantly.

Any insight into this new odd behavior?

Thanks!

dk

  1. Support Staff 1 Posted by Meghan Turner on 07 Feb, 2018 12:28 AM

    Meghan Turner's Avatar

    Hi Dan,

    That's weird, we'll take a look! To give us an example to work with, is there a specific plan or item you've edited recently that's failing to show updated information in the plans list?

    Meghan

  2. 2 Posted by Dan Kamins on 07 Feb, 2018 12:35 AM

    Dan Kamins's Avatar

    One of the changes was updating a tracked item on our SPECIAL_HIBERNATE plan. As this is a public discussion, however, I don't feel comfortable providing additional details beyond that.

    It is still showing the original value in the list of plans.

  3. Support Staff 3 Posted by Meghan Turner on 07 Feb, 2018 12:43 AM

    Meghan Turner's Avatar

    That's helpful, thanks Dan. I'll let you know what we find out.

    Also, I can set this discussion to private if you'd be more comfortable with that. Just let me know what you'd prefer.

    Meghan

  4. Support Staff 4 Posted by Meghan Turner on 16 Feb, 2018 11:28 PM

    Meghan Turner's Avatar

    Hi Dan,

    Wanted to let you know that we're still working on this. The problem's proven to be a bit difficult to replicate, so we're still looking for a fix. Hoping to have some updates for you next week!

    In the meantime, you can workaround the stale cache issue by intentionally passing in a bogus URI for the plans/get request (something like admin/plans/get/?blah). Since it won't match the request URI of the cached page, it resets the cache and should allow you to view changes.

    Meghan

  5. Support Staff 5 Posted by Meghan Turner on 26 Feb, 2018 07:16 PM

    Meghan Turner's Avatar

    Hey Dan,

    Marc's been plugging away at this problem for awhile now and we're still not able to replicate what you saw. He's confirmed the plans/get response and the cache are working as expected in quite a few circumstance, including tests using hundreds of plans and items.

    Since we're unable to replicate, we're going to go ahead and close this issue for now. If you run into this again, you can use the workarounds of waiting for the cache to expire or manually clearing the browser cache for the Cheddar domain.

    Let me know if you have any questions, Dan.

    Meghan

  6. 6 Posted by Dan Kamins on 01 Mar, 2018 05:17 AM

    Dan Kamins's Avatar

    If it's any help, we edited about 10-20 plans at once, opening each one up in a tab, and clicking SAVE on each one in very quick succession. May have caused some kind of race condition or confusion in the backend.
    Anyway, feel free to close this, and we'll let you know if we see it again, and try to pinpoint any more details then!
    Thanks,
    dk

  7. Support Staff 7 Posted by Meghan Turner on 01 Mar, 2018 05:23 PM

    Meghan Turner's Avatar

    Thanks for the additional info! Definitely let us know if you continue to experience this and we can take another look.

    Meghan

  8. Meghan Turner closed this discussion on 01 Mar, 2018 05:23 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac