FS#139 - contentclass_feed: RSS output is never cached
Opened by Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method Filters::noXSS() should not be called statically in /data/web/a5/4e/8e/bugs.anwiki.com/htdocs/includes/class.tpl.php on line 281 anw (anw) - Strict Standards: Non-static method Filters::noXSS() should not be called statically in /data/web/a5/4e/8e/bugs.anwiki.com/htdocs/includes/class.tpl.php on line 613 Thursday, 14 October 2010, 23:10 GMT
It appears that output of contentclass_feed in RSS mode is never cached.
Indeed, when a such content needs to be rendered, it calls $oPage->toHtml() which checks if there is any output cache.
When no cache is found, contentclass_feed->toHtml() is called.
The problem is that in this function, we don't return an AnwOutputHtml object but run $oFeed->output(), which prints the RSS feed and exits - output cache is never saved.
Maybe the contentclass could return the AnwFeed object instead of AnwOutputHtml, the page would then cache this object and then recognize it's a feed and output it.