Performance issues with XML-Feed

I've build a layout to generate a podcast feed for 200 entries. On every load it takes more than five seconds for the xml file to be loaded/generated. Here's a simplified version:

{{xml_header}}<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" >
<channel>
    <title>{{ podcast:name | cdata }}</title>
    <description>{{ podcast:description | cdata }}</description>
    <link>{{ podcast:url }}</link>
    <itunes:summary>{{podcast:description}}</itunes:summary>
    <itunes:owner>
        <itunes:name>{{ podcast:name }}</itunes:name>
        <itunes:email>{{ podcast:email }}</itunes:email>
    </itunes:owner>
    <itunes:image href="{{ podcast:url }}{{ podcast:image }}"/>
    <itunes:keywords>{{ podcast:keywords }}</itunes:keywords>

    {{collection:podcast}}
    <item>
        <title>{{ title | cdata}}</title>
        <description>{{ description | cdata }}</description>
        <link>{{permalink}}</link>
        <guid isPermaLink="false">{{id}}</guid>
        <dc:creator>{{podcast:name}}></dc:creator>
        <pubDate>{{ date format="D, d M o 13:00:00 GMT"}}</pubDate>
        <itunes:image href="{{ podcast:url }}{{podcast:image}}"/>
        <content:encoded>{{ shownotes | cdata }}</content:encoded>
    </item>
    {{/collection:podcast}}
</channel>
</rss>

And the routes file:

routes: 
  /podcast/feed:
    layout: feed
    content_type: xml

How can I improve this? I've tried enabling the static cache, but it only worked for html files.

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower