Today I realized that with my list of cities / substates / states (2000 positions) I waste resources of server and for every now and then it is regenerated in some places where Couch caching is not used.
I want to use some cache and not fetch cities in <select><option> over and over again. I think, when templates are updated with new cities, super-admin can regenerate the snippet and it will be used.
Probably I would need some code to create files and also some replacement code, to change a certain class according to a value. Like, if city = mycity, then replace 'city' with 'city class="active" '. I know it can be done with php, but before I dig in maybe I should know something!
Appreciate all advice and ideas
I want to use some cache and not fetch cities in <select><option> over and over again. I think, when templates are updated with new cities, super-admin can regenerate the snippet and it will be used.
Probably I would need some code to create files and also some replacement code, to change a certain class according to a value. Like, if city = mycity, then replace 'city' with 'city class="active" '. I know it can be done with php, but before I dig in maybe I should know something!
Appreciate all advice and ideas
