CMSB v3.76 Beta Released (Performance Optimizations)

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

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

How do you update the menuHidden value?  With saveSchema()?  If so, it will update the menu order cache automatically.  And you can load it with: Itools\Cmsb\SchemaMenuOrder::loadMenuCache()

Note that undocumented internals might sometimes change, but usually quite infrequently.

Dave Edis - Senior Developer
interactivetools.com