[Pas-dev] include files
Status: Beta
Brought to you by:
mortis
From: Mental <Me...@Ne...> - 2002-02-28 14:39:53
|
I'm in the process of 'fixing' include files. Problem: When you include a file in a psp and up date the included file, but not the psp, the page doesnt rebuild. Proposed solution: Each compiled object should have a $page->__includes() method that returns a list of its includes (suprise). After a page's timestamp is compared to the psp, the timestamps on the includes are checked. If any of these are newer than the page, the compiler rebuilds the page. I plan on making this check configuraable in teh config file. IF someone feels all these stat()/date checks are too expensive, they can turn them off. :) Hopefully I'll have more time tonight to track this down. Next on my TODO list is figuring out why it takes 2 refreshes to see the rebuilt page. This isnt a big deal, but it still nerves me. THe only reason I'm sending this is because if I dont brain dump now, I might forget later. :) -- Mental (Me...@Ne...) It too close to my house. I was walking from the living room to the kitchen, and the stewardess told me to sit down. --Steven Wright GPG public key: http://www.neverlight.com/Mental.asc |