Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
corey.aufang CreditAttribution: corey.aufang commentedLet me make a change to how it notifies to function similar to the way Devel notifies about theme registry rebuild.
Comment #2
davideads CreditAttribution: davideads commentedThanks for looking at this Corey, this was annoying me as well. Maybe also add a warning to the system status page?
Comment #3
corey.aufang CreditAttribution: corey.aufang commentedI 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.
Comment #4
corey.aufang CreditAttribution: corey.aufang commentedWarning message is now throttled and the status report will show that you have developer mode enabled.
Comment #6
jim_at_miramontes CreditAttribution: jim_at_miramontes commentedI'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...
Comment #7
corey.aufang CreditAttribution: corey.aufang commentedIf 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.
Comment #8
jim_at_miramontes CreditAttribution: jim_at_miramontes commentedIndeed; 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!