Is Basex scanning static before each http-request?
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
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
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/HowToCreateAFileWithADotPrefixInWindowsExplore... On 8 April 2016 at 13:19, Christian Grün <christian.gruen@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
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.
http://www.hanselman.com/blog/HowToCreateAFileWithADotPrefixInWindowsExplore...
On 8 April 2016 at 13:19, Christian Grün <christian.gruen@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
participants (3)
-
Andy Bunce -
Christian Grün -
Lars Johnsen