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
 

Template cache and template compile explained

HPPG features template compilation. Most template engines are based on some custom developer template syntax, but PHP itself is good template engine it can offer more than any template engine. So what is cached if template engine uses PHP. Current template engine cached some used functions in templates. Some examples of compiled templates blocks.

<?php include_once(erLhcoreClassDesign::designtpl('pagelayouts/parts/leftmenu_admin.tpl.php'));?>

These template blocks are replaced with included templates content. System generated one template file without inclusions witch reduces systems disk calls. 

URL compilation:

<?=erLhcoreClassDesign::baseurl('/')?>

These templates blocks are replaced with precompiled URL and avoids repeatable php function calls.

 

Settings compilation:

<?=erConfigClassLhConfig::getInstance()->conf->getSetting( 'site', 'title' )?>

These templates blocks are replaced with precompiled settings values.

 

Translations compilations

<?=erTranslationClassLhTranslation::getInstance()->getTranslation('user/grouplist','Title');?>

 

Cleaning template cache

Template cache can be cleaned by logging to administration and pressing clean cache link.

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