Why is sass --update not going fast when run from php exec?

I'm using sass in a php-based application and am trying to use the --update option so that the sass code is not recompiled every time the browser requests the corresponding css file. When I run the sass command on the command-line, it works as expected (longer compile time after a sass file has been changed, short compile time if not). When I run it from php using exec, it seems to take long enough that it must be recompiling every time. Any ideas why and how I can fix it?

Answers


Looks like it was a problem with the default caching location when running as the web server. Specifying a cache directory using the --cache-location option seemed to fix the problem and make it run much faster.


Need Your Help

maven eclipse workspace resolution

java eclipse maven m2eclipse workspace

I have 2 maven projects in my workspace. They are not a multi-module project, but two separate ones. In one project, I reference the other as a dependency. I have workspace resolution turned on, bu...

Script like google suggest in python

python ajax

I am writing a script that works like google suggest. Problem is that I am trying to get a suggestion for next 2 most likely words.