When the CSS is changed the file isn't updated, so the changes are never visible. The code that controls loading the CSS file is as follows:

    // Check to see if there is any CSS.
    if (!empty($panelizer->css)) {
      ctools_include('css');
      $filename = ctools_css_retrieve($display->cache_key);
      if (!$filename) {
        $filename = ctools_css_store($display->cache_key, $panelizer->css);
      }
      drupal_add_css($filename, array('group' => CSS_THEME));
    }

Nothing is done when the CSS is changed so once the CSS is loaded the first time it stays that way.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Issue summary: View changes
DamienMcKenna’s picture

FileSize
1.95 KB

This checks if the entity previously had a CSS value saved, if it did it deletes the old file and recreates it. FYI the new CSS file is immediately generated so that other tasks can act upon it during the same page execution, if needed.

DamienMcKenna’s picture

Status: Active » Needs review
DamienMcKenna’s picture

DamienMcKenna’s picture

FileSize
1.2 KB

Rerolled as there were some changes in those lines in #2181799: Not able to save multiple displays on an entity.

DamienMcKenna’s picture

FileSize
1.06 KB

Improved the logic so that the file will be deleted if it exists, not just if there was CSS before, and then only recreated if there's still CSS in the updated entity object.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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