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: Problem with cpm_viewRandomMostViewedMediaFrom in large galleries  (Read 3321 times)

0 Members and 1 Guest are viewing this topic.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code


There is a problem with memory handling in cpm_viewRandomMostViewedMediaFrom - that crops up in very large galleries.

(like 20,000 pictures).

It will basically result in an out of memory condition on your server.

I am working on a fix, but for now if you edit the cpmfetch_config.php file (in the dev releases) you can change the line that reads:

// What percentage will be evaluated as being top rated
// $config_overrides['cfTopPercentForTopRated'] = '10';

to something less... like
$config_overrides['cfTopPercentForTopRated'] = '2';

The same bug probably will occur with the random most viewed, the setting for that is in:

// What percentage will be evaluated as being most viewed
//  $config_overrides['cfTopPercentForMostViewed'] = '25';

Vuud

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.