It is possible your page is cached when you first hit it but hitting refresh requests all objects (xquery and otherwise) to be feched.
One way of helping debug this is to run this scenario while using Chrome or IE Dev tools. Each has a tool you can use to watch what the networking events for a refresh are doing and how long each object is taking to fetch and render. It may be there is something your page is fetching that is causing the problem like an image or JS file ... I am usually quite surprised when I run these tools. If you find conclusively that the .xquery file is the one taking the longest to respond (not render), Then you can use profiling in the page to produce profiling results. From: [email protected] [mailto:[email protected]] On Behalf Of Henrik Nielsen Sent: Sunday, July 22, 2012 1:30 AM To: [email protected] Subject: [MarkLogic Dev General] Problem when refreshing browser When I click a link to a page in my MarkLogic web site (development site hosted on my local PC), the page is displayed in the blink of an eye, but more often than not when I then click refresh or ctrl+refresh on that page it takes forever before the page reloads. Sometimes it takes 30 seconds or more, sometimes there is no response at all. This occurs in all major browsers, but only with MarkLogic, not with PHP or ASP/IIS (I only have one web server running at a time). The MarkLogic site is XQuery throughout, so this is not a browser issue with XML or XSLT. Any suggestions? Henrik Thiil Nielsen Copenhagen
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
