Last post Jun 03, 2018 02:07 PM by EnenDaveyBoy
Jun 01, 2018 12:06 AM|EnenDaveyBoy|LINK
I am going through some of my front end to work out the best way to get the information to the views, and I am happy with how its heading, but I have a few questions.
Let says I have a eccomerce site.
Now I have
an index page which has a List of viewModels which are a base version of a product
and a details page which is a full product
now I have the option to cache the page, however how do i manage live data? eg stock counts, maybe auction information, etc
should I just cache the viewModels, and add the dynamic information after
or do I cache the complex entities, and use that to create the index and details?
Also is it a good idea to put a time limit on the cache so it will get refreshed say every?
Also is there a way to see whats in that cached area while testing?
Also is there a way to see the file size of all the cached items while testing?
Amy information would be appriciated.
Jun 03, 2018 01:28 PM|Brando ZWZ|LINK
In my opinion, choosing the cache the page or cache the part of the data is according to your environment.
If you cache the whole page, it will increase the speed for loading the page.
But it will take a lot of resource in the memory or cache service resource.
Normally, we will just cache the most important page like main page.
If you cache a part of data, it will not use many resource, but you need write the logic to rebuild your page with cache data.
In my opinion, I suggest you could choose cache a part of data.
Besides, if you want to see your client browser cache file size, I suggest you could try to use ie.
You could find each domain's cache size in the options---> settings for the history storage ---> cache.
Jun 03, 2018 02:07 PM|EnenDaveyBoy|LINK
thanks for the info