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

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 will help you maintain and extend your web site.



Caches

Tip

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; however if things are being edited from outside ocPortal, it is recommended that the caches are either regularly emptied (see screen-shot for the interface for this), or (temporarily) disabled. 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

{!DOC_CLEANUP_TOOLS}

The cleanup tools interface includes support for mySQL database repairing and optimisation. In some sense, these are cache-related, as if mySQL corrupts or becomes inefficient over time, it is due to the way it needs to work efficiently on a query-by-query basis via caching/indexing. If the database has become very corrupt, you may need to use a tool such as phpMyAdmin to repair a database from outside ocPortal.







Concepts

Cache
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