Hello,

Js and css caching in the 7.x branch isn't work properly, as long as it uses code relevant only for Drupal 6.
drupal_add_js function now returns array of a different structure, so that scripts aren't cached properly. Same thing with css, signature of drupal_add_css function has been changed, and now it accepts only two parameters.
Also creating of panels_cache_object instance was moved above the content render, in order to store previously added js/css and cache only those, added during the panel render.

I made a patch which solves this issue, please review it when you have time.

Thanks,
Dmitry

CommentFileSizeAuthor
#1 panels-js-css-caching-1298352-1.patch3.85 KBzhgenti
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zhgenti’s picture

Here is file

bryancasler’s picture

This is fantastic! I thought it was just me :)

Looking forward to someone who understands caching taking a look at this.

merlinofchaos’s picture

Status: Needs review » Fixed

Looks good! Fantastic, thank you! Committed and pushed.

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 9b18aaa on 7.x-3.x, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    Issue #1298352 by zhgenti: Update css/js caching to D7 versions of...