1. Choose your duration carefully - too short will limit its usefulness, too long may return stale data and unnecessarily burden the cache with pages that are not request.
2. Consider what will cause the page to become invalid - if you don't have a mechanism to invalidate a page, keep the duration short.
3. Consider where you want the item cached - at the client, at the server, at proxies - and choose the appropriate location.
4. Consider whether you can profitably use VaryByParams.
With Best Regards,
Mitesh Mehta
No comments:
Post a Comment