Skip to content

Instantly share code, notes, and snippets.

@Pross
Created October 24, 2022 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pross/26a0bd727195b1f581f3c5726e67affa to your computer and use it in GitHub Desktop.
Save Pross/26a0bd727195b1f581f3c5726e67affa to your computer and use it in GitHub Desktop.
Small data mode
== What the hell does this do? ==
When you save settings in a module or your layout when enabled any settings that is *not* set, blank or null
the settings is not saved, this can save about 30% size for the postmeta.
== Are there any downsides? ==
Possibly, if a 3rd party module expects an option to be blank and it isnt set you might see some strange things like
default text showing when you blanked it out expecting the text to then be blank.
== So should I use this? ==
Its kind of a last resort if your host limits database size ( Get off that host now ) Or you are using addons that add
thousands of settings on cheap hosting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment