1 Sep 2006 01:39
Loading Recent Changes brings CPU to 100% on server
Hello, I am still having this problem, although I believe that it is specific to the settings of MediaWiki, seeing that I have other MediaWiki installations (also 1.7.1) on the same server, and they do not have this problem. When a user loads the recent changes page on my wiki, the CPU utilization on my server goes up to 99 to 100% for a single Apache process, and that process stays alive for *exactly* 60 seconds (which also happens to be the cutoff time for PHP scripts on my server). This only happens *after* the recent changes page has been sent to the browser, and the connection has been closed (I have KeepAlive off). I have no idea what is going on, and any help would be greatly appreciated. Thanks, Kasimir Gabert -- -- Kasimir Gabert
:
I am trying to show different images, dependent on some conditions:
Scenario 1: if the current page(name) is the same as a given pagename,
image_1.gif is shown.
Scenario 2: if the current page(name) is not the same as the given pagename, the
existence of the given pagename is checked:
Scenario 2a: if the given pagename exists, image_2a.gif is shown.
Scenario 2b: if the given pagename does not exist, image_2b.gif is shown.
So i wrote:
{{if:
{{ifeq:
{{NAMESPACE}}:{{PAGENAME}} | {{NAMESPACE}}:{{BASEPAGENAME}}/subpage | true
}}
| [[Image = image_1.gif]]
| {{ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/subpage
| [[Image = image_2a.gif]]
| [[Image = image_2b.gif]]
}}
}}
The problem is that image_1.gif does not appear, even if
{{NAMESPACE}}:{{PAGENAME}} has the same value as
{{NAMESPACE}}:{{BASEPAGENAME}}/subpage (e.g. image_2a.gif appears then
instead, because the given pagename
RSS Feed