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 :(

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

1 Answer 1


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.

  • Excellent, seems to be working! Although pref name seems weird :D
    – dzh
    Commented Feb 11, 2018 at 13:01
  • added info about user debug mode Commented 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
    Commented 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! Commented Jun 6, 2023 at 16:27

You must log in to answer this question.

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