Is Basex scanning static before each http-request?

Friday, 8 April 2016 · 4 messages
LJ
Lars Johnsen8 Apr 2016 14:17 #
Hi all It seems that BaseX is scanning the webapp directory including static for each request. Is that right? And is it possible to turn it off ? Best, Lars
CG
Christian Grün8 Apr 2016 14:19 #
Hi Lars,
Quoted text · Lars Johnsen · 2 lines
> It seems that BaseX is scanning the webapp directory including static for > each request. Is that right? And is it possible to turn it off ?
Caching can be turned off by setting CACHERESTXQ to true. Moreover, a sub-directory will not be parsed for RESTXQ files if it contains a file named .ignore (see [1] for more details). Christian [1] http://docs.basex.org/wiki/RESTXQ#Preliminaries
AB
Andy Bunce8 Apr 2016 16:55 #
Perhaps the distribution should include a .ignore in webapp\static as creating one can be a pain under windows [1] /Andy [1] http://www.hanselman.com/blog/HowToCreateAFileWithADotPrefixInWindowsExplorer.aspx
Quoted text · Christian Grün · 14 lines
On 8 April 2016 at 13:19, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Lars, > > > It seems that BaseX is scanning the webapp directory including static for > > each request. Is that right? And is it possible to turn it off ? > > Caching can be turned off by setting CACHERESTXQ to true. Moreover, a > sub-directory will not be parsed for RESTXQ files if it contains a > file named .ignore (see [1] for more details). > > Christian > > [1] http://docs.basex.org/wiki/RESTXQ#Preliminaries >
CG
Christian Grün8 Apr 2016 17:02 #
Quoted text · Andy Bunce · 2 lines
> Perhaps the distribution should include a .ignore in webapp\static as > creating one can be a pain under windows [1]
An interesting hint. I’m always working with Windows, but I never noticed that ;) I have just added .ignore to the webapp/static directory.
Quoted text · Andy Bunce · 19 lines
> http://www.hanselman.com/blog/HowToCreateAFileWithADotPrefixInWindowsExplorer.aspx > > On 8 April 2016 at 13:19, Christian Grün <christian.gruen at gmail.com> wrote: >> >> Hi Lars, >> >> > It seems that BaseX is scanning the webapp directory including static >> > for >> > each request. Is that right? And is it possible to turn it off ? >> >> Caching can be turned off by setting CACHERESTXQ to true. Moreover, a >> sub-directory will not be parsed for RESTXQ files if it contains a >> file named .ignore (see [1] for more details). >> >> Christian >> >> [1] http://docs.basex.org/wiki/RESTXQ#Preliminaries > >

⚡Generated with XQuery