*Lots* of mosCountModules on one page a bad idea? Topic is solved

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
mike62

*Lots* of mosCountModules on one page a bad idea?

Post by mike62 » Sat Mar 22, 2008 3:55 pm

I'm working on a page that uses an AJAX "accordion" to display upcoming events modules for high-school sports teams. Throughout the year, the schedule changes, and the active sports teams rotate (some visible, some not). Currently I'm using mosCountModules (Joomla 1.0.x) to determine if a certain tab of the accordion gets displayed or not. That way the school can unpublish modules not in use, and the tab will disappear completely.

My question is this: There are over 40 teams that play throughout the year. Is it a bad idea to have that many PHP scripts checking for modules every time that page is loaded? I want to avoid a "CPU overloaded" error from my host, and am not sure if that is playing with fire or not.

Thanks for any advice!
-Mike

Post Reply