Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12388
Latest: Rands
New This Month: 5
New This Week: 2
New Today: 0
Stats
Total Posts: 40308
Total Topics: 7099
Most Online Today: 42
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 41
Total: 41

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

0 Members and 1 Guest are viewing this topic.

Offline Michel68

  • Full Member
  • ***
  • Posts: 141
    • 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: 15147
    • 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: 141
    • 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: 15147
    • 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
3226 Views
Last post February 28, 2010, 08:46:36 pm
by SMFHacks
2 Replies
1885 Views
Last post November 21, 2011, 03:43:36 pm
by Vincent Volmer
3 Replies
2744 Views
Last post June 09, 2012, 08:58:43 am
by SMFHacks
6 Replies
2733 Views
Last post September 22, 2014, 02:38:43 pm
by shuban
1 Replies
1012 Views
Last post December 04, 2017, 07:20:10 pm
by SMFHacks

+- Recent Topics

Quality of images after import by SMFHacks
September 05, 2020, 10:21:44 am

How do I download gallery images? by CWVRV
August 30, 2020, 11:50:07 pm

Deleting Empty Galleries by SMFHacks
August 30, 2020, 11:43:32 am

PHP error by davejo
August 25, 2020, 07:35:13 am

Permissions to list ads and buy items by CWVRV
August 21, 2020, 05:19:45 pm

Doubt with download permissions. by Rock Lee
August 20, 2020, 08:23:24 pm

Attachment images Upsidedown or Sideways by SMFHacks
August 18, 2020, 05:41:07 pm

[Mod]Avatars Display Integration by Hatshepsut
August 17, 2020, 11:39:54 pm

Simple Portal Block - Classifieds by SMFHacks
August 16, 2020, 09:56:48 am

SMF Links by SMFHacks
August 16, 2020, 08:03:42 am

Powered by EzPortal