All seems to work fine and I can pull recently saved items, however the data never seems to update. The first 10 items pulled always show, even though I am pulling the last items by ID.
Here is my angular code:
/* Blogs */
var ent = entityResource.getPagedDescendants(2925, "Document")
.then(function(ent) {
var myDoc = ent;
var blogEntries = [];
angular.forEach(myDoc.items, function (item) {
var publicationStatus = ((item || {}).metaData || {}).IsPublished;
if(publicationStatus == true){
blogEntries.push(item);
}
});
vm.BlogEntries = blogEntries;
});
It returns the correct data, but those items were first pulled. I now have items with higher IDs, but it does not seem to pull them no matter what. Only those items are ever showing (I pull 10 items max in my view)
I just want the latest items to show... (ie ID 3027 and above - which currently exist on my site)
I can get the latest items working fine in local, but as soon as I push my changes to DEV/Staging, I can no longer get the latest items.
Am I doing something wrong? Is there a way to get those latest item? Is this a cache issue on my cloud environment?
Umbraco Cloud - Cache issue using angular on custom dashboard
Hi,
Currently using Umbraco Cloud 7.12.4
I have followed some tutorials using this tutorial page.
All seems to work fine and I can pull recently saved items, however the data never seems to update. The first 10 items pulled always show, even though I am pulling the last items by ID.
Here is my angular code:
It returns the correct data, but those items were first pulled. I now have items with higher IDs, but it does not seem to pull them no matter what. Only those items are ever showing (I pull 10 items max in my view)
I just want the latest items to show... (ie ID 3027 and above - which currently exist on my site)
I can get the latest items working fine in local, but as soon as I push my changes to DEV/Staging, I can no longer get the latest items.
Am I doing something wrong? Is there a way to get those latest item? Is this a cache issue on my cloud environment?
Any help would be much appreciated.
is working on a reply...