Hi, i've created a custom application in Umbraco 7.1 where admin can create and edit some data.
The flow is like this:
Angular $http.get and get object as json
Updates the object
Save the object using $http.post
Everything works great just that my old data is still in my input fields. (Tryed reloading the page, clear cache but it dosen't help) I've checked my database (MSSQL) and it updates correctly with the new values.
For me it looks like Umbraco caches the $http.get results. Any ideas?
Hi Jan, Google Chrome. I dont think it is the browser cache because i cleared it / restarted the browser / reloaded the page. The only soloution is to rebuild my project.
Hi, i found a solution. In my code i had a helper class that did some logic before the query to the database. I placed the query in the controller and now it works. Strange..
Umbraco caches database calls in application
Hi, i've created a custom application in Umbraco 7.1 where admin can create and edit some data.
The flow is like this:
Everything works great just that my old data is still in my input fields. (Tryed reloading the page, clear cache but it dosen't help) I've checked my database (MSSQL) and it updates correctly with the new values.
For me it looks like Umbraco caches the $http.get results. Any ideas?
Hi Cimplex and welcome to our :)
What browser are you using? I thin there might be some general angularjs cache issues with IE10/11 if I remember correctly when using $http.get/post.
/Jan
Hi Jan,
Google Chrome. I dont think it is the browser cache because i cleared it / restarted the browser / reloaded the page. The only soloution is to rebuild my project.
How are you inserting/updating your database ? Can you provide some code
Hi, i found a solution. In my code i had a helper class that did some logic before the query to the database. I placed the query in the controller and now it works. Strange..
is working on a reply...