Re: Slow css and feeds
Posted: Thu May 01, 2008 1:10 am
Hi!
You could "statify" the CSS and .htc behaviour files:Turn them into real, normal HTML documents without active code.
The CSS file currently executes the whole s9y api, if you make it a static template you will loose the ability to add new event plugins on the fly, but gain the ability to have plain CSS textfiles. You can edit your templateto use that static CSS file, and leave the serendipity.css intact so that you can always simply wget that and put its content into a "serendipity2.css" file or something like that.
The behaviour file currently is routed through the event plugin API; you could remove thebrowser compatibility pluginto rid of it, or write a "static" variant of that plugin.
About the RSS2 feed: That one takes time. Actually it should take the same time like the atom feed. I guess that the atom is only faster because the DB query is cached. If you were to ask the atom feed before the RSS2 feed, the atom one should be the slow one. There's not much you can tune in the RSS feed.
HTH,
GArvin
You could "statify" the CSS and .htc behaviour files:Turn them into real, normal HTML documents without active code.
The CSS file currently executes the whole s9y api, if you make it a static template you will loose the ability to add new event plugins on the fly, but gain the ability to have plain CSS textfiles. You can edit your templateto use that static CSS file, and leave the serendipity.css intact so that you can always simply wget that and put its content into a "serendipity2.css" file or something like that.
The behaviour file currently is routed through the event plugin API; you could remove thebrowser compatibility pluginto rid of it, or write a "static" variant of that plugin.
About the RSS2 feed: That one takes time. Actually it should take the same time like the atom feed. I guess that the atom is only faster because the DB query is cached. If you were to ask the atom feed before the RSS2 feed, the atom one should be the slow one. There's not much you can tune in the RSS feed.
HTH,
GArvin