CMSB v3.78 Beta Released (PHP 8.1 Required, Plugin and Debug Tools)

5 posts by 3 authors in: Forums > CMS Builder
Last Post: Yesterday at 7:25pm   (RSS)

Just checked out the showcase page. The category links in the left column are broken. Always displays all records.

Jeff Shields
yaadev.com

Thanks Jeff,  That was actually related to a very obscure bug, so we found it and fixed it.

Dave Edis - Senior Developer
interactivetools.com

By Dave - Yesterday at 1:51pm - edited: Yesterday at 1:52pm

Hi All,

We just released v3.78 beta 2! This update has some minor bug fixes (include the above issue) and some UI improvements for Debug Footers: 

Here's what we updated in the header: 

  • Total plugin time shows as seconds and percentage, so you can see at a glance how much of your page load is spent in plugins
  • PHP settings show max seconds, memory, and OpCache status, so you know what you're working with and how long you need to wait for OpCache to refresh the cache after changes
  • Remote IP is displayed to make it easy to copy and paste when writing debug code, e.g., if ($_SERVER['REMOTE_ADRR'] === '156.51.31.129') { ... }
<!-- DEBUG FOOTER (visible to admins only)

    PAGE PERFORMANCE                PHP SETTINGS              SYSTEM                        
    ----------------                ------------              ------                        
    Total Time:  0.007s             PHP Version: 8.4.8        CMS:       v3.78 (build 2902) 
    - CMS Core:  0.006s (92%)       Max Time:    120s         Remote IP: 156.51.31.129      
    - Plugins:   0.001s (8%)        Max Memory:  128M                                       
    Peak Memory: 1.40 MB            OpCache:     On (2s)      

And under Plugin hooks we added a Total (ms) column to make it extra clear what's what without having to do mental math to convert averages into totals.  For reference, 1.000 ms equals 0.001s.

    Plugin Hooks Called                                        Hook                                  Calls    Avg Time  Total (ms)  Total (s)
    ---------------------------------------------------------  ------------------------------------  -----  ----------  ----------  ---------
    /cmsb/plugins/websiteMembership/websiteMembership.php:37  viewer_postinit                           1     0.495ms     0.495ms     0.000s
    /cmsb/plugins/facebookLogin/facebookLogin.php:23          _websiteLogin_init.pre_actionHandler      1     0.025ms     0.025ms     0.000s
    /cmsb/plugins/permalinks/permalinks.php:29                viewer_output_rows                        5     0.003ms     0.013ms     0.000s
    /cmsb/plugins/permalinks/permalinks.php:27                init_complete                             1     0.005ms     0.005ms     0.000s
    /cmsb/plugins/simpleCart/simpleCart.php:18                viewer_postinit                           1     0.003ms     0.003ms     0.000s
    /cmsb/plugins/simpleCart/customCart.php:78                viewer_postinit                           1     0.001ms     0.001ms     0.000s
    /cmsb/plugins/facebookLogin/facebookLogin.php:24          _websiteLogin_init.pre_actionHandler      1     0.000ms     0.000ms     0.000s
    ---------------------------------------------------------  ------------------------------------  -----  ----------  ----------  ---------
                                                               TOTAL                                    11     0.049ms     0.542ms     0.001s

Thanks to these tools, we’ve already halved our CMS load time by half, by moving slower plugin setup from the per-page hook (admin_postlogin) into the plugin menu initialization (plugin_menu_init) and applying a few other tweaks.

Give it a try and share any feedback; otherwise, we’ll publish v3.78 as stable within the next few days.

Thanks for your help!

Dave Edis - Senior Developer
interactivetools.com

Awesome :-)

Does this release include the inclusion of columnEncryptionKey into the Env variables? And, the return of the login_isValidLogin hook (or similar) so we can add third party 2FA?

Cheers

Rob