Показать сообщение отдельно
Старый 13.05.2009, 21:10   #1
typo27
Новенький
 
Регистрация: 30.01.2008
Сообщений: 27
По умолчанию $GLOBALS['TSFE']->additionalHeaderData and caching

Privet,

I am making USER (cached) plugin.
In pi1 php I put some css/js file:

PHP код:
$GLOBALS['TSFE']->additionalHeaderData[$this->extKey]= $some_css_js_files
When caching page, in head I see
<!--HD_a4a1240e6a1c18d040c473c1ae7d3ec4-->
instead of css/js files. So additional header is not generated yet, meanwhile plugin content is - because it is USER.

How come additional header is not generated yet?
(in another USER plugin this works ok).

Does anybody know what can be reason for additional header data not being generated (for USER plugin!) when page is cached?

Sposibo
typo27 вне форума   Ответить с цитированием