0
votes

When I do a query to my WebApi controller action which passes a viewmodel with 2 properties:

Id = 1 date = 01/01/2013

and this data is cached by breeze.

The next query I do has the same id but the date is different.

Now I ask myself does breeze automatically look into the local cache when the user retrieves

data for the above 2 queries or does breeze go to the server?

Does breeze also take the data from the local cache when I do:

  • execute query no. 1
  • change a textfield in the resulting data and save that
  • execute query no. 2
  • execute query no. 1 again and ask myself, does breezejs go to the server or take the data

automatically from its cache?

1

1 Answers

1
votes

Breeze always goes to the server by default. You can change this by either using the FetchStrategy.FromLocalCache or by performing executeQueryLocally.

As a result of any server queries, the cache is always updated.