Yes-you are right. I had meant XML object, but the issue still persists. 
Even with the XML() function wrapping the cache output, the output rendered 
on the browser is a string with the tags printed. In this case, this always 
appears while previously, it would only occur after the cache has been 
filled. Perplexed!

On Wednesday, 29 January 2014 14:12:05 UTC+8, Anthony wrote:
>
> On Wednesday, January 29, 2014 12:19:54 AM UTC-5, Calvin wrote:
>>
>> Thanks Anthony. It still appears to be returning the string result rather 
>> than the HTML object - even for the first time the function is called 
>> (uncached). I have cleared the cache (using redis cache).
>>
>
> Not sure what you mean. The value stored in the cache is always a string 
> (even when there's nothing yet in the cache, the value created to be stored 
> in the cache must be a string). When the value is created or retrieved from 
> the cache, it is then wrapped in XML(), so the myoutput variable is an XML 
> object. At no point do you have a standard HTML helper.
>
> Anthony
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to