10

Is it possible to set default org configuration to:

  • Enable "Debug Mode" is Lightning Components settings under setup

  • Disable "Enable secure and persistent browser caching to improve performance" in Session Settings under setup

Both of these are causing us to miss and introduce quite a bit of bugs :(

1
  • Updated my answer. There's a new org preference for Caching at least Feb 10, 2018 at 10:39

1 Answer 1

10

As of February 2018 you can use S1EncryptedStoragePref2 as disabled OrgPreference to disable secure and persistent caching.

Update November 2018: Debug Mode can be achieved by updating the Boolean UserPreferencesUserDebugModePref on sObject User.

4
  • Excellent, seems to be working! Although pref name seems weird :D
    – dzh
    Feb 11, 2018 at 13:01
  • added info about user debug mode Nov 13, 2018 at 17:38
  • 2
    Here's a one-liner to enable debug mode echo "update new User(Id = UserInfo.getUserId(), UserPreferencesUserDebugModePref=true);" | sfdx force:apex:execute
    – dzh
    Mar 21, 2020 at 9:53
  • Wow! Looking through all the Session Settings to identify "Enable secure and persistent browser caching to improve performance". I never would have found that! Jun 6 at 16:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .