Hi there,
I am wondering which is better from a speed perspective when loading the same cached data from the database an using it in different places. Is it better caching all of the data in the database for that record and caching that request on the ID of the record and always calling that cached data when I need anything. Or is is better to cache separate smaller sets of data and using those smaller sets that only contain the information that is needed. Eg when all I need is title and image only caching that and returning that for a list view and on the details page caching any information I need for that page?
Also on top of that is it better to cache a result set of say 5 blog articles ( a single large volume of data) or cache each one individually and load in 5 cache records one for each article (different cached pieces of data that contain less information).
I guess the question is; is there a massive speed difference in the returning of cache based on how much data is stored in the cached and what is best practice?
Thanks,
Adrian