Forums / Developer / (offset) in navigation link put Apache to 100% CPU load

(offset) in navigation link put Apache to 100% CPU load

Author Message

Alessandro Dellanna

Wednesday 22 December 2010 3:11:22 pm

Hi all, can anyone help me about this:

I have a Blog with several blog post (about 10.000). The full-blog template use the google.tpl template for build navigation paging at the end of the list.

When I click on the navigation link the Apache process go to 100% CPU load (mysql work normally and there isn't any query in execution) and then 240 sec Apache send a timeout. If I try clicking two or three times then the link works correctly.... ghosts,ghosts, on my server .... heeelll....p!

The problem seem to be the (offset) keyword in the link .... but in the search function of ez the (offset) work perfectly.

Here is the code of the navigation template

{include name=navigator
                     uri='design:navigator/google.tpl'
                     page_uri=concat('/content/view','/full/',$node.node_id)
                     item_count=$blogs_count
                     view_parameters=$view_parameters
                     item_limit=$page_limit}