Warning reads: "LESS files are being regenerated on every request. Remember to turn off this feature on production websites."

I understand that a live server should not have 'developer mode' turned on. When you're theming you need developer mode on, and this warning message becomes very annoying. Why is it printed every time you refresh? It should print once and then let me get on with theming.

I hacked the module to get rid of the message.

Comments

corey.aufang’s picture

Let me make a change to how it notifies to function similar to the way Devel notifies about theme registry rebuild.

davideads’s picture

Thanks for looking at this Corey, this was annoying me as well. Maybe also add a warning to the system status page?

corey.aufang’s picture

I actually have the status page warning coded on my machine right now, just haven't committed it yet.

Both will show up in the 6.x-dev when I have the coding for warning message throttling is done.

corey.aufang’s picture

Status: Active » Fixed

Warning message is now throttled and the status report will show that you have developer mode enabled.

Status: Fixed » Closed (fixed)

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

jim_at_miramontes’s picture

I'm a little late to the game here, but how would I use what's in v. 7.x-2.5 to disable this message permanently? The message seems to only show up every so often (once per hour?), but I'd like to shut if off altogether without hacking the module, if that's possible.

A separate thought would be to get the less module to work with the flood_control module to provide a nice interface for this ability, but that's probably for another day...

corey.aufang’s picture

If you would like LESS to use the flood control module, open a new issue as a feature request and I will consider it. Just need to have better visibility for something like this rather down in a closed issue.

jim_at_miramontes’s picture

Indeed; will do. Meanwhile, is there a way to use what's there now to completely turn off the message? Seems like there is, but the earlier discussion was a bit too telegraphic for me. Thanks!