From: <me...@st...> - 2002-08-17 18:50:57
|
>>>>> "Chris" == Chris Winters <ch...@cw...> writes: Chris> I'm finally going to fix editing templates in the browser. This has only Chris> worked if you add your templates to the database, and using the Chris> filesystem for template storage has been quietly touted since it was Chris> implemented. Chris> What I'd like to do is get rid of database storage for templates Chris> altogether and use the new centralized package template storage in the Chris> filesystem. Just remember that when you save a file, you must save it to a unique temp name in the same directory, then rename it when complete. Otherwise, an async concurrent process may see a partially written file. This is in addition to any locking you want, or you can simply use a "last writer wins" strategy. TT got it wrong initially, and some people reported weird errors under stress (and those are the toughest to fix!). -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <me...@st...> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! |