URL source in cached RSS feeds.
This commit is contained in:
parent
dd62b9ba2a
commit
58046a19ae
1 changed files with 3 additions and 3 deletions
|
@ -921,7 +921,7 @@ function showRSS()
|
||||||
echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n";
|
echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
echo '</channel></rss>';
|
echo '</channel></rss><!-- Cached version of '.pageUrl().' -->';
|
||||||
|
|
||||||
$cache->cache(ob_get_contents());
|
$cache->cache(ob_get_contents());
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
|
@ -1001,7 +1001,7 @@ function showATOM()
|
||||||
$feed.='<author><name>'.htmlspecialchars($pageaddr).'</name><uri>'.htmlspecialchars($pageaddr).'</uri></author>';
|
$feed.='<author><name>'.htmlspecialchars($pageaddr).'</name><uri>'.htmlspecialchars($pageaddr).'</uri></author>';
|
||||||
$feed.='<id>'.htmlspecialchars($pageaddr).'</id>'."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do.
|
$feed.='<id>'.htmlspecialchars($pageaddr).'</id>'."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do.
|
||||||
$feed.=$entries;
|
$feed.=$entries;
|
||||||
$feed.='</feed>';
|
$feed.='</feed><!-- Cached version of '.pageUrl().' -->';
|
||||||
echo $feed;
|
echo $feed;
|
||||||
|
|
||||||
$cache->cache(ob_get_contents());
|
$cache->cache(ob_get_contents());
|
||||||
|
@ -1078,7 +1078,7 @@ function showDailyRSS()
|
||||||
echo '<description><![CDATA['.$html.']]></description>'."\n</item>\n\n";
|
echo '<description><![CDATA['.$html.']]></description>'."\n</item>\n\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
echo '</channel></rss>';
|
echo '</channel></rss><!-- Cached version of '.pageUrl().' -->';
|
||||||
|
|
||||||
$cache->cache(ob_get_contents());
|
$cache->cache(ob_get_contents());
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
|
|
Loading…
Reference in a new issue