8. Enable or disable Caching
I guess you can use server.CreateThreadSafeMap
but it may be better to wrap a library like:
Lettuce Reference Guide
lettuce.io
This is something beyond my knowledge and always a nightmare of mine when developing web applications.
If I want to build a web framework/application, I need to consider/overcome this problem. Caching can be a culprit to the issue of the static content not refresh. This usually happen if I overwrite the CSS or replace a new image with the same file name. The workaround is to append a new value to the GET request in the calling URL to force the server thinks that this resource should not already existed.
My question is, if I generate dynamic content from the database query or programming function to generate some kind of data model to pass to a template engine like FreeMarker, would I getting any issue? I am referring to jServer (jetty) application.
freemarker