Customizing SMF > SMF Coding Discussion
Uninstallation Best Practice: Delete mod's settings on Database removal?
Arantor:
I would imagine most of those 172 people are bots.
emanuele:
166, the others are you and him. :P
Arantor:
Pretty much ;)
DaKrampus:
Well i'm just writing a mod where i have close to 100 settings some of them large text settings.
I finished the admin part and discovered that it did somehow influence performance (not so the speed but memory).
What I am doing now... to solve the problem, is the following:
1. As every setting has text, name and description I put them all in admin language. so they will only load in admin.
2. As 96 of the 99 settings are used in admin only to generate a css file that is saved in a setting, i only keep the 3 settings that are needed for front end in the settings table and move all other settings into an extra table.
3. on uninstall i then will delete the 3 settings that remain, and drop the table where all the other settings are.
of course that means lots of work to get something working that already works. But somehow i feel much better if the stuff is gone once i uninstalled.
Da
Arantor:
If that CSS is ever used generally in the main forum, I would encourage you to keep them inside the main settings to avoid that extra query per page.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version