Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Xanthia theme performance, wow, really bad
  • Posted: 31.07.2006, 22:57
     
    marktheblair
    rank:
    Registered User Registered User
    registered:
     July 2006
    Status:
    offline
    last visit:
    31.07.06
    Posts:
    1
    I'm sure this has to do with the way I've got it set up, by with every click the Database gets driven to about 70% of the CPU cycles.

    I've got all the caching turned on, and this helps alot, if a page is cached, I don't get the CPU hit. BUt I wouldn't think the performance would be soooo bad with the cache turned off.

    I tried investigating with my PHP debugger to try and figure out where the performance hit is, and there is some things about the Xanthia code I don't understand.

    The main one, in the do_themeheader function, the display functions for ALL the visible blocks get called, regardless of whether or not the {$leftblocks},{$rightblocks},{$centreblocks} tags are in my template or not. I only wnat the blocks to show up on the home.htm page, so I removed them from the others, I only want module output on non home.htm pages.

    This seems like a waste, there could be many calls to the DB there never end up getting displayed when a user goes to our forums for example, because blocks aren't displayed on that page.

    I'm positive I'm doing something wrong, but I'm not sure what it is, any insights would be helpful.

    thanks,

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula