PageCount


A simple way to produce a count of all pages using (:pagelist:):



(:pagelist fmt=#pagecount list=all:)


[[#pagecount]]
(:if equal {>$FullName}:)
This site contains {$$PageCount} pages.
[[#pagecountend]]

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.22 00.21 MarkupToHTML begin
 3: 00.22 00.21 MarkupToHTML begin
 4: 00.24 00.22 FPLTemplate: Chain begin
 5: 00.24 00.22 FPLTemplate: FPLTemplateLoad
 6: 00.24 00.22 FPLTemplate: FPLTemplateDefaults
 7: 00.24 00.22 FPLTemplate: FPLTemplatePageList
 8: 00.24 00.22 MakePageList pre
 9: 00.24 00.22 PageListSources begin
10: 00.24 00.22 PageStore::ls begin wiki.d/{$FullName}
11: 00.24 00.22 PageStore::ls merge wiki.d/{$FullName}
12: 00.25 00.22 PageStore::ls end wiki.d/{$FullName}
13: 00.25 00.23 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
14: 00.25 00.23 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
15: 00.25 00.23 PageStore::ls end $FarmD/wikilib.d/{$FullName}
16: 00.26 00.24 PageListSources end count=10544
17: 00.26 00.24 PageListSort pre ret=4 order=name
18: 00.26 00.24 MakePageList items count=10544, filters=
19: 00.27 00.25 MakePageList post count=10544, readc=0
20: 00.27 00.25 PageListSort begin
21: 00.27 00.25 PageListSort sort
22: 00.46 00.43 PageListSort end
23: 00.46 00.43 MakePageList end
24: 00.46 00.43 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.47 00.44 MarkupToHTML begin
26: 00.47 00.44 MarkupToHTML end
27: 00.47 00.44 FPLTemplate: FPLTemplateSliceList
28: 00.47 00.44 FPLTemplate: FPLTemplateFormat
29: 00.89 00.83 MarkupToHTML begin
30: 01.13 01.07 MarkupToHTML end
31: 01.13 01.07 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 01.13 01.07 FPLTemplate: Chain end
33: 01.14 01.07 MarkupToHTML end
34: 01.14 01.07 MarkupToHTML end
35: 01.14 01.08 MarkupToHTML begin
36: 01.15 01.08 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
37: 01.15 01.09 ReadApprovedUrls SiteAdmin.ApprovedUrls end
38: 01.16 01.09 MarkupToHTML end
39: 01.16 01.09 MarkupToHTML begin
40: 01.16 01.10 MarkupToHTML end
41: 01.17 01.10 now
Peak memory: 9,640,656 bytes