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.02 00.01 config end
 2: 00.24 00.22 MarkupToHTML begin
 3: 00.24 00.22 MarkupToHTML begin
 4: 00.25 00.22 FPLTemplate: Chain begin
 5: 00.25 00.22 FPLTemplate: FPLTemplateLoad
 6: 00.25 00.22 FPLTemplate: FPLTemplateDefaults
 7: 00.25 00.22 FPLTemplate: FPLTemplatePageList
 8: 00.25 00.22 MakePageList pre
 9: 00.25 00.22 PageListSources begin
10: 00.25 00.22 PageStore::ls begin wiki.d/{$FullName}
11: 00.26 00.23 PageStore::ls merge wiki.d/{$FullName}
12: 00.26 00.23 PageStore::ls end wiki.d/{$FullName}
13: 00.27 00.24 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
14: 00.27 00.24 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
15: 00.27 00.24 PageStore::ls end $FarmD/wikilib.d/{$FullName}
16: 00.28 00.25 PageListSources end count=10579
17: 00.28 00.25 PageListSort pre ret=4 order=name
18: 00.28 00.25 MakePageList items count=10579, filters=
19: 00.30 00.26 MakePageList post count=10579, readc=0
20: 00.30 00.26 PageListSort begin
21: 00.30 00.26 PageListSort sort
22: 00.49 00.42 PageListSort end
23: 00.49 00.42 MakePageList end
24: 00.49 00.42 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.50 00.43 MarkupToHTML begin
26: 00.50 00.43 MarkupToHTML end
27: 00.50 00.43 FPLTemplate: FPLTemplateSliceList
28: 00.50 00.43 FPLTemplate: FPLTemplateFormat
29: 01.03 00.88 MarkupToHTML begin
30: 01.38 01.19 MarkupToHTML end
31: 01.38 01.19 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 01.38 01.19 FPLTemplate: Chain end
33: 01.38 01.19 MarkupToHTML end
34: 01.39 01.20 MarkupToHTML end
35: 01.39 01.20 MarkupToHTML begin
36: 01.40 01.21 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
37: 01.40 01.21 ReadApprovedUrls SiteAdmin.ApprovedUrls end
38: 01.41 01.22 MarkupToHTML end
39: 01.41 01.22 MarkupToHTML begin
40: 01.42 01.22 MarkupToHTML end
41: 01.42 01.23 now
Peak memory: 9,676,080 bytes