This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Force generation of new css files from less

7 years ago · Last reply by Alex S 7 years ago

Hello,

I’m developing a widget which will require quite much css. When i make a change to the widgets less file a corresponding css file is created in wp-content/uploads/siteorigin-widgets.

Is it possible to turn this off temporary while developing, or for that matter force it to generate new files on every update? Right now I need to empty this folder on each update which, of course, is quite annoying. :)

Thanks in advance.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 7 years, 1 month ago

    Hi Linuzitac,

    Unfortunately, there’s no direct way to disabling the CSS files from being cached. You can however indirectly prevent it by restricting the write permission of wp-content/uploads/siteorigin-widgets – if we’re unable to write the CSS to a file, we’ll output it on the page itself.

    You could also write a script to run on load to delete any CSS files present. You can find the core deletion code we use to clear files, here.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread