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]   Go Down

Author Topic: performance hack  (Read 4534 times)

0 Members and 1 Guest are viewing this topic.

Bash

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
performance hack
« on: November 18, 2009, 02:01:39 pm »

I'm really interested in the stats performance improvement from this mod. However is there any way of ONLY installing this part of the mod? (I don't want to upload all the current files because I already have other mods installed that would need to be edited back in).

Thanks in advance,
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: performance hack
« Reply #1 on: November 22, 2009, 02:33:16 pm »

You'll have to extract that from the modpack. The performance hack is doing nothing more than removing extry queries for the statistics. Usually coppermine checks the number of images visible for the viewing user. That needs some CPU. The hack counts all images in the database (as if the admin is viewing the gallery). To be found in index.php.

Bash

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: performance hack
« Reply #2 on: November 22, 2009, 02:37:15 pm »

So I just need to look in index.php or are other files involved?

Thanks again
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: performance hack
« Reply #3 on: November 22, 2009, 02:53:35 pm »

if you want to switch it on and off in config, then you'll need to add the necessary sql. Otherwise yes, index php without the if statement.

Bash

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: performance hack
« Reply #4 on: November 22, 2009, 02:58:54 pm »

I've added it now, thanks. I hope it'll help a little since my gallery is starting to become slow (v large and busy).
Logged
Pages: [1]   Go Up
 

Page created in 0.046 seconds with 20 queries.