A neat way of handling pre-generation/static data caching is using Squid, which will cache the static portions of your website.