CMSB v3.76 Beta Released (Performance Optimizations)

13 posts by 2 authors in: Forums > CMS Builder
Last Post: 3 hours ago   (RSS)

I'd say stick with $schema = loadSchema('myTable'); and get everything from there since that's the definitive source.

Dave Edis - Senior Developer
interactivetools.com

I just realized that everything I need for the plugin is now in __menu_order.php, and I don't need the schema. That said, I will be changing the menuHidden flag in some cases. My app is organized by packages that map to one or more tables. If a package is enabled, the menuHidden is set to 0 (now it would be removed); if not, it is set to 1. These packages can be enabled or disabled anytime.

The Class SchemaMenuOrder shows that the file is cached, so updating it might not be the best practice. Should I save the file and then call SchemaMenuOrder::refreshCache() OR is there a better way?

Jeff Shields
yaadev.com