<div dir="ltr">Are you seeing this performance on all pages or only those with pagelists?<div><br></div><div>Be aware that some pagelist search requirements require an exhaustive search through files rather than using the pageindex (searching for the value of a PTV, for instance).</div><div><br></div><div>-Peter</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 9, 2016 at 4:57 PM, ABClf <span dir="ltr"><<a href="mailto:languefrancaise@gmail.com" target="_blank">languefrancaise@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for your clean summary Petko.<br>
I'm asking that question because my website has become very slow (30<br>
seconds or more, many 502 bad gateway, no reason I can point. Not sure<br>
it is my fault or server's fault).<br>
According to the data given by diag option, it looks like the scan<br>
among all my folders and files took too much time.<br>
<br>
Thus I suspected the existing pageindex (57,2 mo) to have become<br>
altered and useless...<br>
<br>
I built a new one, and it's still very bad. I must now ask my webhost,<br>
and start investigating for a new one.<br>
<br>
Gilles.<br>
<div class="HOEnZb"><div class="h5"><br>
2016-01-09 8:26 GMT+01:00 Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>>:<br>
> On 2016-01-09 00:05, ABClf wrote:<br>
>><br>
>> For new year first question, I would like to know how to be sure<br>
>> .pageindex is used for creating pages. Do informations given by<br>
>> $EnableDiag help ?<br>
><br>
><br>
> For creating pages? .pageindex is used (scanned) when a pagelist or a<br>
> visitor searches for terms or link targets in the wiki pages. When<br>
> searching, you will see something like:<br>
><br>
> 16: 00.17 00.16 PageListTermsTargets begin count=1038<br>
> 17: 00.17 00.16 PageIndexGrep begin<br>
> 18: 00.28 00.27 PageIndexGrep end<br>
> 19: 00.96 00.94 PageListTermsTargets end count=222<br>
><br>
> The "PageIndexGrep" lines indicate that .pageindex was used.<br>
><br>
>> (For example : does this page<br>
>> <a href="http://www.pmwiki.org/wiki/Test/PagelistExample" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/Test/PagelistExample</a> use pageindex or no ?)<br>
><br>
><br>
> No, this page does not use .pageindex because the pagelist does not need to<br>
> search for terms or link targets.<br>
><br>
> Moreover, we use $PageListCacheDir so the whole list of pages from the<br>
> pagelist will be saved once and as long as the cache is not obsolete, it<br>
> will use the cache without scanning the pages or .pageindex.<br>
><br>
><br>
> If you wonder if .pagelist is updated with the terms and targets of a newly<br>
> created or a modified page, the answer is yes. To see it in the diagnostic<br>
> output, disable redirects ($EnableRedirect=0;) then when you save a page,<br>
> you will see these two lines:<br>
><br>
> 30: 00.38 00.35 UpdatePage: PostPageIndex (Test.WikiSandbox)<br>
> 31: 00.38 00.35 PageIndexQueueUpdate: queued 1 pages (1 total)<br>
><br>
> try it here: <a href="http://www.pmwiki.org/wiki/Test/WikiSandbox" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/Test/WikiSandbox</a> (you can delete and<br>
> recreate this page if you want).<br>
><br>
> ---<br>
> Change log     :  <a href="http://www.pmwiki.org/wiki/PmWiki/ChangeLog" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/ChangeLog</a><br>
> Release notes  :  <a href="http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes</a><br>
> If you upgrade :  <a href="http://www.pmwiki.org/wiki/PmWiki/Upgrades" rel="noreferrer" target="_blank">http://www.pmwiki.org/wiki/PmWiki/Upgrades</a><br>
><br>
><br>
> _______________________________________________<br>
> pmwiki-users mailing list<br>
> <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
> <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</div></div></blockquote></div><br></div>