Site Config - Rebuild Registry

From Jomres v4 manual

Jump to: navigation, search

General description

This feature helps you rebuild the jomres registry after you uploaded/deleted by FTP a new minicomponent in /jomres/remote_plugins. The registry is updated automatically if you install/uninstall a plugin using the Jomres plugin installer. Rebuilding registry also helps if you move your site from one place to another (for example from your computer to the hosting account).

Detailed description

As Jomres gets older we're amassing a bigger collection of plugins for it. These are good because you don't need to bloat the standard installation of Jomres with extra functionality that some people will not need, and I and 3rd party developers can develop and release new functionality more quickly, independant of different releases of Jomres.

Back in the old days, every time Jomres was started it had to re-discover more and more plugin files, and on some machines this was starting to take quite some time. Linux/Unix type boxes are going to be much quicker but I figured it was better to nip the problem in the bud, before people started grumbling.

So, 3.2beta2 introduced the "minicomponent registry". What we've done is seperate the discovery phase from the running phase of the minicomponent handler. What previously was done all in memory (discovery) is now written to a file called registry.php and saved into the /jomres/temp folder. This isn't done every time Jomres is run. Instead, it's done when a plugin is installed, uninstalled or the plugin manager page is run. There's also a button to trigger this manually (called "rebuild registry" in the Jomres control panel). This is useful if your server doesn't have CURL enabled, because you can't see the plugin manager.

So, how does this affect you?

For most people, it'll have little or no effect except to see their Jomres pages appear a little faster (if it wasn't a super quick server to start with).

Some people however might benefit from reading this. This is anybody who follows the manual notes for creating minicomponents or modifying existing functionality. When install_jomres.php is run it'll build the registry (or indeed, anytime registry.php isn't found in the /jomres/temp folder Jomres will rebuild it) and any new minicomponents will be found and added to the registry. If you've edited some minicomponent files and put them into /jomres/remote_plugins/custom_code folder so that they're not overwritten on upgrade, if you add any new files you may well need to run the Rebuild Registry feature to make sure that the new plugins are being picked up.

Personal tools