I have a big form with 132 (12x11) select menus which are populated from the db (MySQL). The problem is obvious: page takes a long time to load because of all those db calls.
The structure of the form: there is a 12 separate sections each for 1 room with 11 dropdowns each (here is the link http://tinypic.com/view.php?pic=6tfjpk&s=7).
From 11 of those dropdowns 8 are the same "Room Description". Is there a way....I could somehow cache those dropdowns especially those 8 from the section 1 (room 1) and then just reload the cache for all other sections (other 11)? I tried to make the array in the function (which creates the dropdown from the database) with dynamic variables assigned to be static static ${$var_name};
but php parser itself doesn't allow dynamic variables to be static.