Jump to:

23379 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » SS3.0 - How to prevent cache from editor.css in CMS?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 308 Views
  • pouic
    Avatar
    Community Member
    16 Posts

    SS3.0 - How to prevent cache from editor.css in CMS? Link to this post

    I need prevent cache for file editor.css when he added to content_css

    Any ideas?

    @LeftandMain.php line 224

    if($theme) $cssFiles[] = THEMES_DIR . "/{$theme}/css/editor.css";
    else if(project()) $cssFiles[] = project() . '/css/editor.css';

    // Remove files that don't exist
    foreach($cssFiles as $k => $cssFile) {
    if(!file_exists(BASE_PATH . '/' . $cssFile)) unset($cssFiles[$k]);
    }
    $htmlEditorConfig->setOption('content_css', implode(',', $cssFiles));

    308 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.