Re: Picking up .wo changes
Re: Picking up .wo changes
- Subject: Re: Picking up .wo changes
- From: Pierre Frisch <email@hidden>
- Date: Thu, 5 Jun 2003 14:58:31 -0700
Could you be a bit more explicit as to what you are trying to achieve.
I have two application running that reload the templates on the fly one
from the DB and one from the file system. They have a memory cache like
WO but it is under the application control and I can decide when and
what to purge. You want to use a cache as you do not want to reparse
the components all the time. The one thing to be careful: Your cache
must be thread safe.
Pierre
On Thursday, June 5, 2003, at 12:23 AM, Anders F Bjvrklund wrote:
Pierre Frisch wrote:
Is there yet a way to reload changed .wo bundles (either .html or
.wod file)
without having to restart (all instances of) the entire WO
application ?
I'm pretty certain that you would have to re-implement template().
I have done it and to make it work right is not simple as there is no
easy
way to intervene in the existing cache so will have to rebuild a cache
of your own. Not very difficult but quite a bit of work.
Was afraid of that...
I think I'll just give the good old shock therapy treatment then.
(Similar when I edit something in the database, and don't feel like
waiting an hour or "invalidating" everything. <BZZT!> Much better.)
Guess I should just be thankful that WebObjects keeps everything in
memory,
and not runs of to the disk / database to see if the world has changed
?
(Be it Components definition files, or EnterpriseObjects database
snapshots)
Suppose I have to keep even more layout definitions outside the WO
components,
to avoid having to deploy a new application for every little layout
change ?
Perhaps fetch them from the database or read them from a file or
something.
Then again, maybe this is the divine sign that I should rewrite it,
and lose
the pesky .wod files forever and just integrate everything into the
.html files ?
So that one can edit the .wo components in modern webpage editing
tools, I mean...
Like these guys do ? http://www.cluster9.com/examples/index_e.html
(C9WOTemplate)
--anders
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.