Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11834
Latest: Volker S
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42319
Total Topics: 7381
Most Online Today: 40
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 31
Total: 32

Author Topic: Rebuild related images time too long  (Read 901 times)

0 Members and 1 Guest are viewing this topic.

Offline Michel68

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Rebuild related images time too long
« on: August 09, 2020, 07:53:38 am »
Hello, I have over 12000 Images and a rebuild need over 15 Minutes. We are now in 2020 there is no need to wait 3 seconds to do the next 50 images. Could you please raise the steps and remove the Pause?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16045
    • View Profile
Re: Rebuild related images time too long
« Reply #1 on: August 09, 2020, 11:38:16 am »
In sources gallery2.php
You can change the number from 50 at
two spots
Code: [Select]

function Gallery_BuildRelatedIndex()
{
 global $smcFunc, $txt, $context;

 isAllowedTo('smfgallery_manage');

 @ini_set('max_execution_time', '900');

 $context['start'] = empty($_REQUEST['start']) ? 50 : (int) $_REQUEST['start'];


 $request = $smcFunc['db_query']('', "
 SELECT
 COUNT(*)
 FROM {db_prefix}gallery_pic
 ");

 list($totalProcess) = $smcFunc['db_fetch_row']($request);
 $smcFunc['db_free_result']($request);

 // Initialize the variables.
 $increment = 50;

Themes/default/gallery2.template.php
The countdown

Code: [Select]
if (empty($context['continue_countdown']))
 $context['continue_countdown'] = 3;


Change 3 to a smaller number 1 or 2
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Rebuild related images time too long
« Reply #2 on: August 09, 2020, 01:04:14 pm »
Thank you. Can you change that please for the next updates ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16045
    • View Profile
Re: Rebuild related images time too long
« Reply #3 on: August 09, 2020, 01:52:57 pm »
Maybe as an option to configure it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
3901 Views
Last post February 28, 2010, 08:46:36 pm
by SMFHacks
2 Replies
2168 Views
Last post November 21, 2011, 03:43:36 pm
by Vincent Volmer
6 Replies
3420 Views
Last post September 22, 2014, 02:38:43 pm
by shuban
3 Replies
2193 Views
Last post January 06, 2016, 10:25:28 am
by SMFHacks
1 Replies
1347 Views
Last post December 04, 2017, 07:20:10 pm
by SMFHacks

+- Recent Topics

Profile Gallery Link by Hatshepsut
July 04, 2022, 11:00:01 pm

Trying to access array offset on value of type null by SMFHacks
July 04, 2022, 08:14:20 pm

Pictures appearing in post by SMFHacks
July 04, 2022, 12:56:40 pm

Error When Uploading Gifs To Subcategories by SMFHacks
July 03, 2022, 05:50:19 pm

SMF forum by davejo
June 27, 2022, 01:16:25 am

Quick-moderation checkboxes by davejo
June 22, 2022, 09:27:24 am

Add option to Main Menu bar by Shades
June 21, 2022, 12:23:00 am

Logo and Category? by SMFHacks
June 12, 2022, 03:43:31 pm

prettyurls - TroubleShooting.wiki by GhostHunting
June 12, 2022, 02:52:57 pm

[Mod]Modification Update Version Checker by SMFHacks
June 06, 2022, 09:25:39 pm

Powered by EzPortal