No more missing include files

I had this problem where you’d visit the front page of kryogenix and all you’d see is, “Missing include file ../days/posts.html”. The reason for this was that posts.html is a file created by Vellum that lists the last n posts, which is funkily cached, i.e., it doesn’t exist until someone does an HTTP request for it. Now, the front page of kryogenix does an SSI include of that file, but it tries to include it as a file, not by doing a request. So, every time any entry in posts.html got “rebuilt” (i.e., deleted), the front page stopped working because the file wasn’t there to include!


So I fixed it by making the front page do an HTTP request for the file instead:

<?cas import urllib pfp = urllib.urlopen("") response.write( pfp.close() ?>

I do like Castalian.

I'm currently available for hire, to help you plan, architect, and build new systems, and for technical writing and articles. You can take a look at some projects I've worked on and some of my writing. If you'd like to talk about your upcoming project, do get in touch.

More in the discussion (powered by webmentions)

  • (no mentions, yet.)