Which is the best.....Caching or XML...????

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
Hi....

I'm using Nop 2.2

i want to store my menu in cache or XML...

coz it is taking so much time.....


so which is the best way to store  menu in Cache or XML...???

Please give me some hint for that...

Thank You..
Hace 12 años
Dharmik wrote:
Hi....

I'm using Nop 2.2

i want to store my menu in cache or XML...

coz it is taking so much time.....


so which is the best way to store  menu in Cache or XML...???

Please give me some hint for that...

Thank You..


I think the correct answer would be whatever you prefer. If you "cache" it then at least once during the operation of your application you will need to load the information and store it in memory.

If it is XML then you will need to read it, parse it, and display it every time. Unless your XML is hundreds of lines reading, parsing, and displaying will not take very long (milliseconds).

You could combine the two as well. Persisting the menu via XML and after reading and parsing cache it so subsequent loads do not need to repeat the same process.

For this I would say just do what you're comfortable with. I don't think you will be unhappy with either approach, but depending on your programming proficiency one could take longer than the other.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.