For anyone following my battle with cached query images - it turns out that if you don't put your files in a subdirectory directly under your main htdocs directory, your don't get the cached query images to show when you do a query with ms_demo. Put your files in a subdirectory directly under your main htdocs directory, and it works!