WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Showing only sibling pages in backend on a huge site
  • Print
Pages: [1]   Go Down

Author Topic: Showing only sibling pages in backend on a huge site  (Read 8324 times)

Offline svsanchez

  • Posts: 589
Showing only sibling pages in backend on a huge site
« on: April 29, 2020, 05:16:15 AM »
Hello everybody,

One of my WB sites has more than 3,000 pages in 40+ categories. When I went to the pages section in the backend, it took forever to open. The pages in the front end were also slower. A few years ago someone here in the forum posted a solution for big sites which consisted in showing only the parent pages, and when clicking on the plus sign it would open a new page only with the second level pages, and so on. This made it a lot faster.

Problem is, after upgrading a dev version of the site from 2.8.3 to 2.12.1, this solution doesn't work anymore which is making the site horribly slow. I have been searching for the original post with the solution for doing this in WB 2.8.3 and I don't know if that specific code would work on 2.12.1 so I thought it would be better to ask for help.

In case it's of use, the site which is still on 2.8.3 (faster) is https://www.deguate.com
The test site already upgraded to 2.12.1 (slower) is https://www.superpromos.info/index.php

Thanks for the help you can provide!
Logged

Offline svsanchez

  • Posts: 589
Re: Showing only sibling pages in backend on a huge site
« Reply #1 on: April 29, 2020, 08:18:46 AM »
FOUND IT AT LAST!

Can someone please tell me if this will work with WB 2.12.1?

https://forum.WebsiteBaker.org/index.php/topic,25587.msg174593.html#msg174587
 
Logged

Offline svsanchez

  • Posts: 589
Re: Showing only sibling pages in backend on a huge site
« Reply #2 on: April 29, 2020, 08:45:19 AM »
Ok, so I replaced the /admin/pages/index.php with the old admin-pages-index.php file as instructed by Ruud in that old post.

It SEEMS to work, pages are now loading much faster in the backend, which only load pages from the same level in the pagetree.

HOWEVER:

1) I am NOT able to reorder the pages by dragging and dropping (the reorder function is CHECKED in the admin tools > javascript admin)

2) Pages in the front end are still HORRIBLY slow. For example, you can compare:

- https://www.superpromos.info/guatemala/regalos-y-flores/orquideas.php (SLOW DEV 2.12.1)
Versus
- https://www.deguate.com.gt/guatemala/regalos-y-flores/orquideas.php (NORMAL site 2.8.3)

3) I'm concerned about the safety of using this old (2012!) file. Is there a new version?

Thank you!
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8915
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Showing only sibling pages in backend on a huge site
« Reply #3 on: April 29, 2020, 08:49:36 AM »
The zip in the old post is not usable.
You should zip your used admin/pages/index.php again and attache here.

What you could do. Compare the file with the original from rev1638 to find the changes.
Or compare the new file with the one from 2.12.2.
Maybe you see what was done by Ruud and what can you take over.

I can't recommend to use the old file in the new WB version.
Logged
https://onkel-franky.de

Offline svsanchez

  • Posts: 589
Re: Showing only sibling pages in backend on a huge site
« Reply #4 on: April 29, 2020, 07:45:46 PM »
Hello, unfortunately I am not a programmer, so although I used Notepad++ to compare the original vs the modified index.php pages from version 2.8.x, I wouldn't be able to apply those changes into the new index.php from version 2.12.x

Maybe I'm making this harder than it should really be: it's been already 8 years since Ruud made that modification to the index.php for big sites, so I guess there should be a way in 2.12.x to do this in a simple way?

Is Ruud still active in the forum?
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Showing only sibling pages in backend on a huge site
« Reply #5 on: April 29, 2020, 09:15:58 PM »
I will be able to take a look old file, but not before tomorrow.
Logged
Web developer

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Showing only sibling pages in backend on a huge site
« Reply #6 on: April 29, 2020, 10:29:17 PM »
Quote from: svsanchez on April 29, 2020, 08:18:46 AM
FOUND IT AT LAST!

Can someone please tell me if this will work with WB 2.12.1?

https://forum.WebsiteBaker.org/index.php/topic,25587.msg174593.html#msg174587

I cant open this attachment - file is corrupted.. if you can send me file from your old server..

Also, I dont think your frontend speed has anything to do with this file, as this is backend administration.. there must be some problem elsewhere..
Logged
Web developer

Offline svsanchez

  • Posts: 589
Re: Showing only sibling pages in backend on a huge site
« Reply #7 on: April 30, 2020, 12:20:21 AM »
Hello Crnogorac, thanks a lot for your help!

Ok, attached are 2 files:

- index-parent-categorie.txt is the MODIFIED index.php which goes in /admin/pages and will only show same level pages (Fast!).

- index-2.8.x.txt is the ORIGINAL index.php for WB 2.8.3

I will open another thread for the speed issue, just waiting to see if I can get some info from my host...
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Showing only sibling pages in backend on a huge site
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2