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, which is now in beta. ocPortal 9 will be superseded by Composr 10.

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

Cache table can get very large (#catalogues_498) - Comments

Login / Search

 [ Join | More ]
Title Cache table can get very large
Description The ocPortal cache table can get extremely large.
This can understandably cause problems with webhosts.

The problem happens because ocPortal caches menus for performance, but for each content page each menus is separately cached because of the need for context-sensitivity functionality within the menu templates to function properly (i.e highlighting your current page, and match-tag support).
Affects websites with a moderate to large amount of content, and/or a lot of menus
  1. Replace sources/blocks/side_stored_menu.php with the attached file. This will disable cacheing on this block, which should not affect performance measurable as ocPortal has query efficiency improvements since 4.3.
  2. Empty the block cache. Go to the Admin Zone, the Tools section, the Cleanup Tools icon, and tick (check) the block caption, and proceed.

Side note: ocPortal 4.4 will include this fix, and also an option to use disk-based cacheing instead.
Fix files

Back to the top

Comments / View

1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: