[MIYAGAWA - Sat Apr 2 22:37:50 2005]:
Show quoted text> Kwiki::CachedDisplay seems not play nicely with *Blocks plugin (like
> Kwiki::ShellBlocks), because the cached pages are missing <link/> tags
> to css files.
>
> Sorry I can't provide any patch but a bug report.
Hi, miyagawa
After hours of tracing I finally foudn the killer of those missing css
files. It is because that, cache_display will prevent
formatter->text_to_html being called from time to time, but the loading
time of *Blocks classes are just during formatter. Which means, if a
page contains a ".shell" wafl block, the corresponding css file
"css/shell_blocks.css" will be added into <link> tags, however, for
pages not containing a ".shell" wafl block, "css/shell_blocks.css" will
not be added into <link> tags. Beacuse a cached page will not invoke
text_to_html(), so non of those wafl block CSSes would be added into
<link> tags.
Now I can try to give a work-around in this cached_display plugin that
load all all wafl plugins's CSS, however, I think it's better to let
Kwiki it self generate all those css file <link> by default, instead of
lazy-loading them. :/
Thanks for this bug report :)
Cheers,
Kang-min Liu