Chapter 4. Accompanying Extensions

Abstract

The installation package contains a component and several other extensions. The component was discussed in the Using the JCH Optimize Component chapter, the other extensions will be discussed in this chapter

The JCH Optimize Mode Switcher Module

The JCH Optimize Mode Switcher module is placed on the status bar in the administrator site. This provides an easy way to disable The System - JCH Optimize Plugin on your site from any page in the administrator section.

By clicking this module you toggle between two states, Production, and Development. In Development mode, JCH Optimize is deactivated on the site and all optimizations of the pages ceases. This is so named because it was designed to enable you to do development work on your site without having JCH Optimize interfere with any changes you may want to perform in case you are modifying resource files, etc. You should always disable JCH Optimize when doing development work on your site. In Production mode, JCH Optimize is reactivated and optimizations of the page resumes.

When toggling from Production to Development and back, all the cache in JCH Optimize is automatically cleared and a new cache hash is generated so the files generated by JCH Optimize will have different names. This allows any changes you've made to your CSS or JavaScript files to be immediately viewed by your users in case the previous files were cached in their browsers.

[Tip]Tip

You can integrate the JCH Optimize Page Cache plugin with the JCH Optimize Mode Switcher module so that the page cache plugin is disabled when placed in Development mode and enabled when put in Production mode.

Further Configuring the Mode Switcher Module

When the package is installed the module is placed last on the status bar and any registered user with access to the administrator site will have access to the module. You can configure the location and access level of the module to your liking. To do so, navigate to the System menu item on the left then on the Manage module, click Administrator Modules

Administrator Modules
Navigating to the Administrator Modules

Search through the list for the JCH Optimize Mode Switcher or use the search bar to filter for the module and click the hyperlinked name to open the module for configuration. From here you can change the ordering, access level or unpublish the module if you would rather not have it.

Mode Switcher Module
Configuring the Mode Switcher Module