1 year ago

Best practice for saving "global settings"

Posted 1 year ago by jonassiewertsen

Dear Community

I am looking for the best way to save "global settings". What i mean: Imagine your project has a superAdmin, to configure some things in the system relevant to all users.

For example that 10 posts will be shown as default per page. Normally i would write it into a config file, but how to do it best, if i want a superAdmin to change it for the whole system via his Admin UI.

Of course i could write it into a database, but that feels wrong, since this settings won´t be changed that often, but will affect nearly every request from each user. Do you know best practices? caching? storing into a file?

I am thrilled to hear you think :-)

Please sign in or create an account to participate in this conversation.