Cockpit-HQ / Cockpit

Cockpit Core - Content Platform
https://getcockpit.com
Other
388 stars 48 forks source link

Updated Collection content not returned by API #169

Closed andy4ward2019 closed 10 months ago

andy4ward2019 commented 10 months ago

Hi,

I have the latest version installed (2.7.2) and no other plugins or helpers.

I have created some basic collections and set the public api to be able to manage content and read each collection.

All was working fine until a couple days ago when I added a new collection which has 2 asset links and a text description in the model.

Now when I update this or any other collection by adding or amending an item the API endpoint for GET /content/items/{model} does not return the entries. It has some kind of cached version of the data.

I tried to flush the cache and also tried inspecting the sqlLite files by downloading them and looking at them in a separate viewer.

All the data in the sqlList files looks correct and references everything I have entered and setup but the API is not returning this.

Not sure where to look or what I've done here but essentially seem to have broken the fundamental of the CMS. Not sure if this is a configuration issue or more explicitly code

I'm working with the REST api end points not GraphQL

andy4ward2019 commented 10 months ago

On a bit more investigation it seems the server had some default caching behaviour that was causing this issue so nothing to investigate here