|
nk4um User
Posts: 16
|
2007-07-25T05:26:38.000ZJuly 25, 2007 05:26Thanks
Hi Randy, Yes you are correct and the golden thread did the work that i expect. I''ve completed my project with your great support.
I would like to thank forum team for their valuable and kind support.
Thank you very much! Kawsi.B
|
|
nk4um Administrator
Posts: 158
|
2007-07-24T11:26:47.000ZJuly 24, 2007 11:26
Kawsi,
I am not certain I understand your question. I believe you are saying that you have built an application in NetKernel which
allows users to add or change information in the database and furthermore that when this happens, it appears that the new
information is not available as the old information may be in the NetKernel cache.
If this is the question ... the answer is that you need to create a virtual dependency (we call this a golden thread). The
results of database queries should be attached to the golden thread and the NetKernel code that updates the database should
cut the golden thread to invalidate the cached information.
You can have any degree of granularity with this pattern.
For more information you should search the NetKernel documentation for "Golden Thread". Also, the forum application documentation
talks about how it uses the golden thread pattern.
Randy
|
|
nk4um User
Posts: 16
|
Hi, Really thanks for ur valuable informations. In my case, clients will not allow to change any configuration files. But they
can only change database for example add new entry. After these kind of modification they can''t view the changes without
restart the server. But its not possible for clients. Is it the problem of cashing? how can i get rid of this problem? Plz
help me.
Thanks in advance. K.B
|
|
nk4um Administrator
Posts: 158
|
2007-07-23T15:11:42.000ZJuly 23, 2007 15:11
Kawsi,
Peter mentioned the cases when a module restart is needed.
The hot restart is triggered in one of two ways. The first is through the control panel. The second is by using the <dynamic/>
tag in the <info> section of the module.xml file. If you add this tag, then NetKernel will detect when you save a change to
module.xml and will automatically initiate a hot restart.
Configuration files such as the database configuration are resources just like other resource and can be changed at any time
while the application is running.
Randy
|
|
nk4um Moderator
Posts: 756
|
2007-07-23T14:53:40.000ZJuly 23, 2007 14:53Restarts
A restart is only needed if you change the linking of the address space - ie edit a module definition. The kernel will automatically
pick up changes of files within a module.
|
|
nk4um User
Posts: 16
|
Hi again, If i change/modify database/files without changing any other files like module.xml, do i need to restart the server?
|