HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

ocPortal Tutorial: Cleanup tools

Written by Chris Graham, ocProducts
ocPortal is designed to really help you with your website in every way possible, but without intruding or making assumptions. A number of tools are provided that may help you maintain your web site.



A compromise between using the cleanup tools interface on a production site, and disabling caches on a development site, is to hold down the ctrl, alt and shift keys, and press your browser reset button. This will cause ocPortal to clear a number of caches, and also regenerate certain forms of information (for example, any Comcode referenced on the page being refreshed is re-parsed).
For efficiency reasons, ocPortal defines a number of caches. During normal operation of ocPortal, these caches should be unnoticeable; if things are being edited from outside ocPortal theoretically ocPortal will automatically pick up on it, but you may sometimes need to force a cache flush. By default, all caches are enabled, except when ocPortal is installed on 'localhost'.

Thumbnail: Disabling caches

Disabling caches

Some kinds of cache may be turned off in the configuration, but leaving them on gives vastly improved performance.

If you can identify a situation where you need to rebuild or empty a cache that should not exist, please report it as a bug.

Cleanup Tools

Thumbnail: The cleanup tools interface

The cleanup tools interface

The website cleanup tools page will allow you to empty any website cache, as well as automatically locate and repair common problems, and remove any orphaned data. There are a number of cleanup tools, which are run individually; ideally none ever need to be used, but if things happen outside the norm (such as corruption, or bugs), they can be very useful.

The cleanup tools interface includes support for mySQL database repairing and optimisation. If the database has become very corrupt, you may need to use a tool such as phpMyAdmin to repair a database from outside ocPortal.


A data store that contains precalculated results such that those results do not need to be calculated more than once; caches are designed to increase efficiency

See also