Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
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.
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.