I turn development mode on anytime I work on my code. I have the plugin installed on each of the WordPress sites on my server so that I could toggle dev mode on once and for 3 hours can work on any/all of the sites on the server. So technically I’m “mass turning it on and off”, but I can do it once from any one of those WordPress sites (used to be able to do it with a single click). That being said, it seems like many others have their sites on different servers and must toggle dev mode for each individual site manually.
Sometimes I’ll notice that things are either cached or have reverted (for example if I’m coding for 6+ hours), and so I’ll need to re-enable dev mode in Cloudflare once or twice during a coding session. What was nice was that my above functions showed the status right in the admin bar so I could see at a glance if dev mode was on or not.
In 1.x I was turning it on/off by updating the option that the plugin listened for using my own functions file (but still calling functions defined in the Cloudflare plugin). This option in the DB has been removed and so were the functions I was calling.
I’d also like to see the DevelopmentModeCard
moved from config.js to a WordPress option within the Cloudflare settings page so that we don’t need to modify that file after every update. Coincidentally, I was just viewing this thread again when you posted because I just updated the plugin and lost the ability to enable dev mode so I needed to copy/paste that snippet you provided again… I feel like I shouldn’t have to bookmark this thread (or save that snippet in a repo) in order to update settings.
Hope that’s enough info- I tried to answer as in depth as possible. Thanks.
-
This reply was modified 8 years, 2 months ago by GreatBlakes.