Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 2 [3]   Go Down

Author Topic: how to reduce loading time of index.php  (Read 50314 times)

0 Members and 1 Guest are viewing this topic.

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: how to reduce loading time of index.php
« Reply #40 on: September 13, 2013, 02:30:01 pm »

In my case:
Quote
Before: "Page query count 62"

Now: "Page query count 46"

Regards.
Logged

Bradster

  • Coppermine novice
  • *
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 21
Re: how to reduce loading time of index.php
« Reply #41 on: September 14, 2013, 06:56:52 am »

Sorry, now it's

Parse error: syntax error, unexpected $end in /home/content/27/3728527/html/coppermine/index.php on line 1262

at the very end of the document. If I'm making a mistake, I'm doing it over and over again without figuring out what it is...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: how to reduce loading time of index.php
« Reply #42 on: September 14, 2013, 08:26:07 pm »

Maybe Niecher or someone else can attach the successfully modified file to his/her reply, as I'm not able to access it before Monday.
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: how to reduce loading time of index.php
« Reply #43 on: September 15, 2013, 05:03:53 pm »

Here is the file

Regards.
« Last Edit: September 15, 2013, 05:14:42 pm by Niecher »
Logged

Bradster

  • Coppermine novice
  • *
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 21
Re: how to reduce loading time of index.php
« Reply #44 on: September 15, 2013, 09:09:21 pm »

Thank you Niecher, this doesn't cause errors. After a third or fourth attempt I was finally able to get my version to match, according to diffchecker.com. (Honestly don't know how my Search and Replace was getting botched)

Queries are down to 105, and is the same whether or not "Show first level album thumbnails in categories" is selected- though with almost 900 albums I definitely won't have it selected.

Thanks again for the time and effort on the part of the devs.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: how to reduce loading time of index.php
« Reply #45 on: September 21, 2013, 04:16:11 pm »

What were you using as an editor Bradster? Some tools can mess with code. I recommend the free http://notepad-plus-plus.org/
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Bradster

  • Coppermine novice
  • *
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 21
Re: how to reduce loading time of index.php
« Reply #46 on: September 23, 2013, 12:10:30 am »

Phill, I was using EditPad Lite, and I rarely have problems with it. I'll just have to assume that somewhere along the line I wasn't selecting the full text in the Search/Replace windows when moving from one correction to another. I will also look at your suggested editor- never hurts to have two good and simple ones around.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Re: how to reduce loading time of index.php
« Reply #47 on: October 10, 2013, 11:44:19 am »

If everything works as expected, I'll commit the changes to our SVN repository.
Committed changes in SVN revision 8605.
Logged

astrasuite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: how to reduce loading time of index.php
« Reply #48 on: February 19, 2014, 03:41:32 pm »

Well, I saw this change was part of 1.5.26 ... 1.5.26 in general seems to have speeded up my gallery, and Google Webmaster no longer complains (so far) of my gallery being slow, great !
Logged

olivedev

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: how to reduce loading time of index.php
« Reply #49 on: August 31, 2016, 03:16:33 pm »

Have you tried enabling CDN on your website and integrating caching. My website was slow as well, but once I activated CDN and integrated Varnish and Memcached, the performance really improved. I also changed from shared hosting of Godaddy to dedicated hosting on Cloudways.
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.018 seconds with 20 queries.