[pmwiki-users] How to be sure pageindex is being used for pagelists (using debug messages ?)
pbowers at pobox.com
Sun Jan 10 14:18:57 CST 2016
Are you seeing this performance on all pages or only those with pagelists?
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).
On Sat, Jan 9, 2016 at 4:57 PM, ABClf <languefrancaise at gmail.com> wrote:
> Thank you for your clean summary Petko.
> I'm asking that question because my website has become very slow (30
> seconds or more, many 502 bad gateway, no reason I can point. Not sure
> it is my fault or server's fault).
> According to the data given by diag option, it looks like the scan
> among all my folders and files took too much time.
> Thus I suspected the existing pageindex (57,2 mo) to have become
> altered and useless...
> I built a new one, and it's still very bad. I must now ask my webhost,
> and start investigating for a new one.
> 2016-01-09 8:26 GMT+01:00 Petko Yotov <5ko at 5ko.fr>:
> > On 2016-01-09 00:05, ABClf wrote:
> >> For new year first question, I would like to know how to be sure
> >> .pageindex is used for creating pages. Do informations given by
> >> $EnableDiag help ?
> > For creating pages? .pageindex is used (scanned) when a pagelist or a
> > visitor searches for terms or link targets in the wiki pages. When
> > searching, you will see something like:
> > 16: 00.17 00.16 PageListTermsTargets begin count=1038
> > 17: 00.17 00.16 PageIndexGrep begin
> > 18: 00.28 00.27 PageIndexGrep end
> > 19: 00.96 00.94 PageListTermsTargets end count=222
> > The "PageIndexGrep" lines indicate that .pageindex was used.
> >> (For example : does this page
> >> http://www.pmwiki.org/wiki/Test/PagelistExample use pageindex or no ?)
> > No, this page does not use .pageindex because the pagelist does not need
> > search for terms or link targets.
> > Moreover, we use $PageListCacheDir so the whole list of pages from the
> > pagelist will be saved once and as long as the cache is not obsolete, it
> > will use the cache without scanning the pages or .pageindex.
> > If you wonder if .pagelist is updated with the terms and targets of a
> > created or a modified page, the answer is yes. To see it in the
> > output, disable redirects ($EnableRedirect=0;) then when you save a page,
> > you will see these two lines:
> > 30: 00.38 00.35 UpdatePage: PostPageIndex (Test.WikiSandbox)
> > 31: 00.38 00.35 PageIndexQueueUpdate: queued 1 pages (1 total)
> > try it here: http://www.pmwiki.org/wiki/Test/WikiSandbox (you can
> delete and
> > recreate this page if you want).
> > ---
> > Change log : http://www.pmwiki.org/wiki/PmWiki/ChangeLog
> > Release notes : http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
> > If you upgrade : http://www.pmwiki.org/wiki/PmWiki/Upgrades
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users