Performance tips for MidCOM 2.5

We just ported a portal containing tens of thousands of documents from Abako Stato to Midgard CMS. Content conversion was done using Exorcist as usual.

Because the site included a biggish public discussion forum we decided to start right away from the current PEAR-packaged MidCOM site interface. MidCOM 2.4 had been causing severe performance issues on personalized sites, and we were a bit worried, especially as latest MidCOMs don’t include the output caching system.

However, the new MidCOM 2.5 infrastructure proved to perform really well, getting us back to the MidCOM 2.2 branch performance levels where most sites really don’t need any caches.

Here are the quick tips on how to make MidCOM 2.5 really fly:

  • Don’t use MidCOM template, instead utilize static start-up
  • Move layout images and CSS from database to Apache DocumentRoot
  • Use only components refactored to the MidCOM 2.5 architecture. These include
    • All net.nehmer components
    • net.nemein.discussion
    • All org.openpsa components
    • This list will grow as we keep porting things
  • Install memcached if you’re using lots of ACLs

Using the upcoming Midgard 1.8 release will make MidCOM faster yet by about 5-10%.

Read more Midgard posts.