Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/www/domains/hppgallery_com/design/defaulttheme/tpl/pagelayouts/main.php on line 59

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/www/domains/hppgallery_com/design/defaulttheme/tpl/pagelayouts/main.php on line 59
Wednesday, June 28, 2017
 

Delay image hit activation

This feature was implemented du a lot of writes SQL in main image table. It reduces disk writes.

Activating

Activation have to be done in settings.ini.php file.

Setting should look like

'delay_image_hit_enabled' => true,

Setting up cronjob

Cronjob is reponsible for update main table in single SQL query.

*/5 * * * * cd /gallery/home_page && /usr/bin/php cron.php -s site_admin -c gallery/cron  > cron_log.log /dev/null 2>&1

That's it. Every five minits image preview number will be updated. Since r560 there are another way to setup delay image hit but requires a little bit more configuration but it's faster by 20% than this solution.

Delay image hit from access log

 

Back »

Comments: 0

Leave a reply »

 
  • Leave a Reply
    Your gravatar
    Your Name
     
     
     
     
 
About HPPG

High performance photo gallery dedicated for large numbers of image storage.

Get in touch

Donate



Download