Summary:
cms_stylesheet writeCache update
Detailed Description:
Hello,
Before (1.12), the {cms_stylesheet} plugin did:
- Combine all the CSS content to a $string
- Give it to cms_stylesheet_writeCache which fetches one string
Now in CMSMS 2.1.1, {cms_stylesheet} does:
- Generate a $list of stylesheets
- Send that list to cms_stylesheet_writeCache
- For every CSS string, smarty fetches it
If everything works fine, that new behaviour makes the Smarty prefilter and
postfiler to be executed as many times as there are stylesheets.
The problems comes when a module wants to plugs itself on the CSS content to
make some preprocessing.
In CSSPreprocessor module, I need to get the whole CSS string to parse it (LESS
/ SASS / Whatever) and return a compiled CSS version to {cms_stylesheet}
Today, such a thing is impossible when you have more than 1 stylesheet
Hope it's clear enough - if not, please contact me..