gturri / nspages

Plugin for dokuwiki - Display tables of content
http://www.dokuwiki.org/plugin:nspages
GNU General Public License v2.0
25 stars 25 forks source link

nspages plugin long load time #100

Open rogerjames1994 opened 5 years ago

rogerjames1994 commented 5 years ago

When I use the nspage plugin, it takes 25 to 30 seconds before the page will load. If I disable this plugin and use a other plugin to list the documents in a name space it is 4 to 5 seconds to load. But when I use nspage plugin it seems to take a very long time to load the page. I am running 2018-04-22 "Greebo" and running windows 2016 Server with IIS. Php 7.1.

gturri commented 5 years ago

Hi,

Thanks for this bug report.That's a behavior I've never heard of yet. Wwhich options of the plugin you're using, and how many pages or subnamespaces it returns.

Le lun. 22 avr. 2019 à 06:54, rogerjames1994 notifications@github.com a écrit :

When I use the nspage plugin, it takes 25 to 30 seconds before the page will load. If I disable this plugin and use a other plugin to list the documents in a name space it is 4 to 5 seconds to load. But when I use nspage plugin it seems to take a very long time to load the page. I am running 2018-04-22 "Greebo" and running windows 2016 Server with IIS. Php 7.1.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gturri/nspages/issues/100, or mute the thread https://github.com/notifications/unsubscribe-auth/AACLK6IZAZ5FW6OZNKN6F5DPRVAIXANCNFSM4HHNMPXQ .

rogerjames1994 commented 5 years ago

There is about 300 or so documents, and have about 9 namespaces and 3 namespaces in each of them. There is maybe 100 in one of the namespace and the rest is spread out between the namespaces. It started out fine but then it just got horrible slow, thought maybe it was just because of all the documents but I have tried other list plugins and they load 4 to 5 seconds but they don’t have the layout that nspages has with the 3 columns. The other plugin only has 1 columns. I am using the exclude the start page, natural order. I think that is it, I can check when I got to work tonight to verify.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Guillaume Turri notifications@github.com Sent: Monday, April 22, 2019 2:54:13 AM To: gturri/nspages Cc: rogerjames1994; Author Subject: Re: [gturri/nspages] nspages plugin long load time (#100)

Hi,

Thanks for this bug report.That's a behavior I've never heard of yet. Wwhich options of the plugin you're using, and how many pages or subnamespaces it returns.

Le lun. 22 avr. 2019 à 06:54, rogerjames1994 notifications@github.com a écrit :

When I use the nspage plugin, it takes 25 to 30 seconds before the page will load. If I disable this plugin and use a other plugin to list the documents in a name space it is 4 to 5 seconds to load. But when I use nspage plugin it seems to take a very long time to load the page. I am running 2018-04-22 "Greebo" and running windows 2016 Server with IIS. Php 7.1.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gturri/nspages/issues/100, or mute the thread https://github.com/notifications/unsubscribe-auth/AACLK6IZAZ5FW6OZNKN6F5DPRVAIXANCNFSM4HHNMPXQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/gturri/nspages/issues/100#issuecomment-485355644, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL4LMVM6LPLEQU2U5BTW7K3PRVVKLANCNFSM4HHNMPXQ.

gturri commented 5 years ago

By default the plugin deactivate Dokuwiki cache (in order to make sure new or deleted pages are taken into account quickly). You may try to reactivate it. To do that:

Please let me know whether it fixes the slowness you're experiencing.

rogerjames1994 commented 5 years ago

I did this and refresh the screen then went to one of the Namespaces and seems to be a little fast with still a little bit of a lag which is about 10 to 15 seconds compared to before which was 30 to 40 seconds before the page opens. I looked to see what I have for the plugin in the page which is <nspages -naturalOrder -exclude:start -textPages=""> It worked great when we first got the plugin loved it. But then after we started uploading all of these documents it just got extremely slow. When I click on the namespace you can see from the screen shot below, the circle and it hangs there before it was 30 to 40 seconds after disable the cache it is 10 to 15 seconds. Let me know if there is any thing else I can try or do. Thanks for your fast response and help.

[cid:6ce1d1a8-ac29-4e85-bd6a-b5ff360cbb07]


From: Guillaume Turri notifications@github.com Sent: Monday, April 22, 2019 9:34 AM To: gturri/nspages Cc: rogerjames1994; Author Subject: Re: [gturri/nspages] nspages plugin long load time (#100)

By default the plugin deactivate Dokuwiki cache (in order to make sure new or deleted pages are taken into account quickly). You may try to reactivate it. To do that:

Please let me know whether it fixes the slowness you're experiencing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/gturri/nspages/issues/100#issuecomment-485434762, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL4LMVK772INCVBEUQY2RBLPRXEGDANCNFSM4HHNMPXQ.

gturri commented 5 years ago

Thanks for this feedback.

That's a bit weird: I though that with Dokuwiki cache, the plugin code would have been totaly by-passed, hence leading to good performances. I guess I'll have to have a closer look at how it works.

One question: if it's a public wiki, could you provide the url so I could observe this behavior directly?

Le mar. 23 avr. 2019 à 06:32, rogerjames1994 notifications@github.com a écrit :

I did this and refresh the screen then went to one of the Namespaces and seems to be a little fast with still a little bit of a lag which is about 10 to 15 seconds compared to before which was 30 to 40 seconds before the page opens. I looked to see what I have for the plugin in the page which is <nspages -naturalOrder -exclude:start -textPages=""> It worked great when we first got the plugin loved it. But then after we started uploading all of these documents it just got extremely slow. When I click on the namespace you can see from the screen shot below, the circle and it hangs there before it was 30 to 40 seconds after disable the cache it is 10 to 15 seconds. Let me know if there is any thing else I can try or do. Thanks for your fast response and help.

[cid:6ce1d1a8-ac29-4e85-bd6a-b5ff360cbb07]


From: Guillaume Turri notifications@github.com Sent: Monday, April 22, 2019 9:34 AM To: gturri/nspages Cc: rogerjames1994; Author Subject: Re: [gturri/nspages] nspages plugin long load time (#100)

By default the plugin deactivate Dokuwiki cache (in order to make sure new or deleted pages are taken into account quickly). You may try to reactivate it. To do that:

  • go to http://
/doku.php?id=start&do=admin&page=config#plugin____nspages____plugin_settings_name * uncheck the box near "Disable the cache" Please let me know whether it fixes the slowness you're experiencing. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/gturri/nspages/issues/100#issuecomment-485434762>, or mute the thread< https://github.com/notifications/unsubscribe-auth/AL4LMVK772INCVBEUQY2RBLPRXEGDANCNFSM4HHNMPXQ >. — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or mute the thread .
gturri commented 5 years ago

According to the doc of the cache (https://www.dokuwiki.org/devel:caching?s[]=cache#two-stage-caching ) the rendered xhtml should be cached, so my understanding is that no matters what the plugin does, it shouldn't be able to slow down your wiki. You might want to have a look at the content of your cache (in data/cache/* ) to check if the page is actually cached.

rogerjames1994 commented 5 years ago

So, there is stuff in them. I even tried to delete that stuff and did not seem to make that much of a difference. Any other ideals what could be wrong or try? It is a little faster 15 seconds which guess is better then 30 seconds. Let me know please. Thanks.

From: Guillaume Turri notifications@github.com Sent: Tuesday, April 23, 2019 2:17 PM To: gturri/nspages Cc: rogerjames1994; Author Subject: Re: [gturri/nspages] nspages plugin long load time (#100)

According to the doc of the cache (https://www.dokuwiki.org/devel:caching?s[]=cache#two-stage-cachinghttps://www.dokuwiki.org/devel:caching?s%5B%5D=cache#two-stage-caching ) the rendered xhtml should be cached, so my understanding is that no matters what the plugin does, it shouldn't be able to slow down your wiki. You might want to have a look at the content of your cache (in data/cache/* ) to check if the page is actually cached.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/gturri/nspages/issues/100#issuecomment-485938454, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL4LMVJ5B3BUQYVMKYOQIR3PR5OERANCNFSM4HHNMPXQ.