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
Sunday, September 23, 2018
 

Explains how to setup APC as cache engine

It is the second option for cache storage.

 

In order to application use APC as cache engine you have to edit these lines below as provided:

'cacheEngine' => array(
        'cache_global_key'  => 'global_site_cache',
        'className'         => 'erLhcoreClassLhAPC'
    ),

Please notice that using Lighttpd you have also to setup "max-procs" => 1, otherwise you will get inconsistency cache storage. Example configuration:

fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => "/var/run/lighttpd/php-fastcgi.socket",
                                   "bin-path" => "/usr/bin/php-cgi",
                                   "max-procs" => 1,
                                   "bin-environment" => ( 
                                       "PHP_FCGI_CHILDREN" => "16",
                                       "PHP_FCGI_MAX_REQUESTS" => "10000" 
                                     )
                                 )
                               )

Important:

  • During personal testing I experienced performance degrade in lighttpd performance. It was capable to server only 1/3 third of request's compared to default settings. I tried to change PHP_FCGI_CHILDREN but it did not helped. So just make some testing before final decision. It was related with max-procs configuration value. Tested server was i7 with 4 CPU's and 8 threads of total.
  • Testing less powerful server performance improvement was visible. About 20 % of listing pages.
  • Once again test before making final decision.

 

 

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