Anwiki CMS

Anwiki CMS : the first wiki/CMS dedicated to multilingual contents
| Tasklist |

FS#139 - contentclass_feed: RSS output is never cached

Attached to Project: Anwiki CMS
Opened by anw (anw) - Thursday, 14 October 2010, 23:10 GMT
Task Type Bug Report
Category Components → ContentClasses
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Anwiki 0.2.4
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


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.
This task depends upon