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.

More in the discussion (powered by webmentions)

  • (no mentions, yet.)