On Mon, Mar 31, 2008 at 9:38 AM, Cina, Pavel (external) <
[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have got here strange behavior with my mason:
> I created a new file (page) in my mason directory (/srv/www/htdocs/mason)
> called test.html. Then I entered only line <h1>Hello world</h1> and closed
> the file. I opened the browser and called the page. Everything was OK. But
> then I opened the file again and after world I entered two points (<h1>Hello
> world..</h1>), saved and closed the file. Then I clicked on my browser
> window and refreshed the page. But the text stays still "Hello world" and
> not "Hello world..". Then I restarted the apache server (/etc/init.d/apache2
> restart) but no change. Only after some time (hard to say how long) will the
> change take effect. Then I realised, that mason creates in its working
> directory (/srv/www/mason) an "obj" directory and there it stores results of
> component parsing and the page is taken from there and not from its original
> place. One can even change the file in the "obj" directory and the change
> will take immediately effect. The only way for me how to disable this
> "caching behavior" was to add following line to mason config:
>
> PerlSetVar MasonUseObjectFiles 0
>
> and then restart apache.
>
> Now my questions :-)
> 1. Why doesn't get the file in "obj" directory changed immediately after
> changing the original file?
>
ANSWER: The object file *should* get updated whenever the source file
changes, unless MasonStaticSource option is turned on. See [1] under links.
2. How long does it take for mason to realise that there were some changes
> done? Can I configure this time?
>
3. What is the normal (standard) way to tell mason that there were some
> changes done (let's say I changed some text, saved the page and now I want
> to test the changes)?
>
ANSWER: Mason *should* stat the file every time a request is made to check
for changes, as above. In static source mode see [2] under links.
The only time I have seen something like this happen is when the files were
stored on different computers and mounted remotely. If the time on the two
computers is out of sync, the object file might appear to be newer than the
source file. Other than that, I just don't know what would cause this.
LINKS:
[1]: http://www.masonhq.com/docs/manual/Params.html#static_source
[2]: http://www.masonhq.com/docs/manual/Params.html#static_source_touch_file
--
-Vince Veselosky
http://www.webquills.net
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users