tag:support.getcheddar.com,2009-06-01:/discussions/problems/9608-stale-cached-plans-list-via-api-and-cg-ui-itselfCheddar: Discussion 2018-03-01T17:23:56Ztag:support.getcheddar.com,2009-06-01:Comment/446776802018-02-07T00:08:52Z2018-02-07T00:08:52ZStale cached plans LIST via API and CG UI itself<div><p>Hello -</p>
<p>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.</p>
<p>HOWEVER the <em>list</em> of plans -- both as we see via API as well as the CG UI shows (<a href="https://www.getcheddar.com/admin/plans/get">https://www.getcheddar.com/admin/plans/get</a>) 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.</p>
<p>This seems to be a new behavior, as in the past we have always seen the updates reflected instantly.</p>
<p>Any insight into this new odd behavior?</p>
<p>Thanks!</p>
<p>dk</p></div>Dan Kaminstag:support.getcheddar.com,2009-06-01:Comment/446776802018-02-07T00:28:18Z2018-02-07T00:28:18ZStale cached plans LIST via API and CG UI itself<div><p>Hi Dan,</p>
<p>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?</p>
<p>Meghan</p></div>Meghan Turnertag:support.getcheddar.com,2009-06-01:Comment/446776802018-02-07T00:35:24Z2018-02-07T00:35:24ZStale cached plans LIST via API and CG UI itself<div><p>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.</p>
<p>It is still showing the original value in the list of plans.</p></div>Dan Kaminstag:support.getcheddar.com,2009-06-01:Comment/446776802018-02-07T00:43:34Z2018-02-07T00:43:34ZStale cached plans LIST via API and CG UI itself<div><p>That's helpful, thanks Dan. I'll let you know what we find out.</p>
<p>Also, I can set this discussion to private if you'd be more comfortable with that. Just let me know what you'd prefer.</p>
<p>Meghan</p></div>Meghan Turnertag:support.getcheddar.com,2009-06-01:Comment/446776802018-02-16T23:28:45Z2018-02-16T23:28:45ZStale cached plans LIST via API and CG UI itself<div><p>Hi Dan,</p>
<p>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!</p>
<p>In the meantime, you can workaround the stale cache issue by intentionally passing in a bogus URI for the <code>plans/get</code> request (something like <code>admin/plans/get/?blah</code>). Since it won't match the request URI of the cached page, it resets the cache and should allow you to view changes.</p>
<p>Meghan</p></div>Meghan Turnertag:support.getcheddar.com,2009-06-01:Comment/446776802018-02-26T19:16:41Z2018-02-26T19:16:41ZStale cached plans LIST via API and CG UI itself<div><p>Hey Dan,</p>
<p>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 <code>plans/get</code> response and the cache are working as expected in quite a few circumstance, including tests using hundreds of plans and items.</p>
<p>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.</p>
<p>Let me know if you have any questions, Dan.</p>
<p>Meghan</p></div>Meghan Turnertag:support.getcheddar.com,2009-06-01:Comment/446776802018-03-01T05:17:00Z2018-03-01T05:17:00ZStale cached plans LIST via API and CG UI itself<div><p>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.<br>
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!<br>
Thanks,<br>
dk</p></div>Dan Kaminstag:support.getcheddar.com,2009-06-01:Comment/446776802018-03-01T17:23:55Z2018-03-01T17:23:55ZStale cached plans LIST via API and CG UI itself<div><p>Thanks for the additional info! Definitely let us know if you continue to experience this and we can take another look.</p>
<p>Meghan</p></div>Meghan Turner