// performance

This commit is contained in:
Kevin Granger committed 2013-09-06 11:03:36 +02:00
1 parent 5afdc024aa
commit 1b2bab6943
3 files changed
+50 -54

No files matched your search

@@ -26,7 +26,7 @@
{block name="label"} {block name="label"}
{if $input.type == 'text' && $input.name == 'ps_cache_fs_directory_depth'} {if $input.type == 'text' && $input.name == 'ps_cache_fs_directory_depth'}
<div id="directory_depth"> <div id="directory_depth" class="col-lg-9 col-lg-push-3">
<div class="alert alert-warning">{l s='The CacheFS system should be used only when the infrastructure contains one front-end server. If you are not sure, ask your hosting company.'}</div> <div class="alert alert-warning">{l s='The CacheFS system should be used only when the infrastructure contains one front-end server. If you are not sure, ask your hosting company.'}</div>
{else} {else}
{$smarty.block.parent} {$smarty.block.parent}
@@ -45,13 +45,13 @@
{block name="description"} {block name="description"}
{$smarty.block.parent} {$smarty.block.parent}
{if $input.type == 'radio' && $input.name == 'combination'} {if $input.type == 'radio' && $input.name == 'combination'}
<ul style="list-style-type:disc;margin:0 0 0 30px;"> <ul>
<li>{l s='Combinations tab on product page'}</li> <li>{l s='Combinations tab on product page'}</li>
<li>{l s='Value'}</li> <li>{l s='Value'}</li>
<li>{l s='Attribute'}</li> <li>{l s='Attribute'}</li>
</ul> </ul>
{elseif $input.type == 'radio' && $input.name == 'feature'} {elseif $input.type == 'radio' && $input.name == 'feature'}
<ul style="list-style-type:disc;margin:0 0 0 30px;"> <ul>
<li>{l s='Features tab on product page'}</li> <li>{l s='Features tab on product page'}</li>
<li>{l s='Feature'}</li> <li>{l s='Feature'}</li>
<li>{l s='Feature value'}</li> <li>{l s='Feature value'}</li>
@@ -69,39 +69,54 @@
{block name="other_input"} {block name="other_input"}
{if $key == 'memcachedServers'} {if $key == 'memcachedServers'}
<div id="memcachedServers"> <div id="memcachedServers">
<div class="margin-form"> <div class="form-group">
<a id="addMemcachedServer" class="button" href="#" ><img src="../img/admin/add.gif" />{l s='Add server'}</a> <div class="col-lg-9 col-lg-push-3">
<button id="addMemcachedServer" class="btn btn-default" type="button" >
<i class="icon-plus-sign-alt"></i>&nbsp;{l s='Add server'}
</button>
</div>
</div> </div>
<div id="formMemcachedServer" style="margin-top: 10px; display:none;"> <div id="formMemcachedServer" style="display:none;">
<form action="{$current}&token={$token}" method="post"> <form action="{$current}&token={$token}" method="post" class="form-horizontal">
<label>{l s='IP Address'} </label> <div class="form-group">
<div class="margin-form"> <label class="control-label col-lg-3">{l s='IP Address'} </label>
<input type="text" name="memcachedIp" /> <div class="col-lg-9">
<input class="form-control" type="text" name="memcachedIp" />
</div>
</div> </div>
<label>{l s='Port'} </label> <div class="form-group">
<div class="margin-form"> <label class="control-label col-lg-3">{l s='Port'} </label>
<input type="text" name="memcachedPort" value="11211" /> <div class="col-lg-9">
<input class="form-control" type="text" name="memcachedPort" value="11211" />
</div>
</div> </div>
<label>{l s='Weight'} </label> <div class="form-group">
<div class="margin-form"> <label class="control-label col-lg-3">{l s='Weight'} </label>
<input type="text" name="memcachedWeight" value="1" /> <div class="col-lg-9">
<input class="form-control" type="text" name="memcachedWeight" value="1" />
</div>
</div> </div>
<div class="margin-form"> <div class="form-group">
<input type="submit" value="{l s=' Add Server '}" name="submitAddServer" class="button" /> <div class="col-lg-9 col-lg-push-3">
<input type="button" value="{l s=' Test Server '}" id="testMemcachedServer" class="button" /> <input type="submit" value="{l s='Add Server'}" name="submitAddServer" class="btn btn-default" />
<input type="button" value="{l s='Test Server'}" id="testMemcachedServer" class="btn btn-default" />
</div>
</div> </div>
</form> </form>
</div> </div>
{if $servers} {if $servers}
<div class="margin-form"> <div class="form-group">
<table style="width: 320px;" cellspacing="0" cellpadding="0" class="table"> <table class="table">
<tr> <thead>
<th style="width: 20px; text-align: center">{l s='ID'}</th> <tr>
<th style="width: 200px; text-align: center">{l s='IP address'}</th> <th >{l s='ID'}</th>
<th style="width: 50px; text-align: center">{l s='Port'}</th> <th >{l s='IP address'}</th>
<th style="width: 30px; text-align: right; font-weight: bold;">{l s='Weight'}</th> <th >{l s='Port'}</th>
<th style="width: 20px; text-align: right;">&nbsp;</th> <th >{l s='Weight'}</th>
</tr> <th >&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach $servers AS $server} {foreach $servers AS $server}
<tr> <tr>
<td>{$server.id_memcached_server}</td> <td>{$server.id_memcached_server}</td>
@@ -109,12 +124,11 @@
<td>{$server.port}</td> <td>{$server.port}</td>
<td>{$server.weight}</td> <td>{$server.weight}</td>
<td> <td>
<a href="{$current}&token={$token}&deleteMemcachedServer={$server.id_memcached_server}" > <a class="btn btn-default" href="{$current}&token={$token}&deleteMemcachedServer={$server.id_memcached_server}" ><i class="icon-minus-sign-alt"></i></a>
<img src="../img/admin/delete.gif" />
</a>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody>
</table> </table>
</div> </div>
{/if} {/if}
@@ -232,23 +232,14 @@
{foreach $input.values as $value} {foreach $input.values as $value}
<div class="radio {if isset($input.class)}"{$input.class}"{/if}"> <div class="radio {if isset($input.class)}"{$input.class}"{/if}">
<div class="label"> <label>
<input type="radio" name="{$input.name}"id="{$value.id}" value="{$value.value|escape:'htmlall':'UTF-8'}" <input type="radio" name="{$input.name}"id="{$value.id}" value="{$value.value|escape:'htmlall':'UTF-8'}"
{if $fields_value[$input.name] == $value.value}checked="checked"{/if} {if $fields_value[$input.name] == $value.value}checked="checked"{/if}
{if isset($input.disabled) && $input.disabled}disabled="disabled"{/if} /> {if isset($input.disabled) && $input.disabled}disabled="disabled"{/if} />
{if isset($input.is_bool) && $input.is_bool == true}
{if $value.value == 1}
<img src="../img/admin/enabled.gif" alt="{$value.label}" title="{$value.label}" />
{else}
<img src="../img/admin/disabled.gif" alt="{$value.label}" title="{$value.label}" />
{/if}
{else}
{$value.label} {$value.label}
{/if} </label>
</div>
</div> </div>
{*if isset($input.br) && $input.br}<br />{/if*} {if isset($value.p) && $value.p}<p class="help-block">{$value.p}</p>{/if}
{*if isset($value.p) && $value.p}<p>{$value.p}</p>{/if*}
{/foreach} {/foreach}
{elseif $input.type == 'switch'} {elseif $input.type == 'switch'}
<div class="row"> <div class="row">
@@ -50,7 +50,6 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'radio', 'type' => 'radio',
'label' => $this->l('Template cache'), 'label' => $this->l('Template cache'),
'name' => 'smarty_force_compile', 'name' => 'smarty_force_compile',
'br' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'smarty_force_compile_'._PS_SMARTY_NO_COMPILE_, 'id' => 'smarty_force_compile_'._PS_SMARTY_NO_COMPILE_,
@@ -95,7 +94,6 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'radio', 'type' => 'radio',
'label' => $this->l('Debug console'), 'label' => $this->l('Debug console'),
'name' => 'smarty_console', 'name' => 'smarty_console',
'br' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'smarty_console_none', 'id' => 'smarty_console_none',
@@ -120,8 +118,7 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Debug console Key'), 'label' => $this->l('Debug console Key'),
'name' => 'smarty_console_key', 'name' => 'smarty_console_key',
'size' => 30, 'hint' => $this->l('SMARTY_DEBUG parameter in the URL.')
'desc' => $this->l('SMARTY_DEBUG parameter in the URL.')
), ),
) )
); );
@@ -208,7 +205,6 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'switch', 'type' => 'switch',
'label' => $this->l('Smart cache for CSS'), 'label' => $this->l('Smart cache for CSS'),
'name' => 'PS_CSS_THEME_CACHE', 'name' => 'PS_CSS_THEME_CACHE',
'br' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'PS_CSS_THEME_CACHE_1', 'id' => 'PS_CSS_THEME_CACHE_1',
@@ -226,7 +222,6 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'switch', 'type' => 'switch',
'label' => $this->l('Smart cache for JavaScript'), 'label' => $this->l('Smart cache for JavaScript'),
'name' => 'PS_JS_THEME_CACHE', 'name' => 'PS_JS_THEME_CACHE',
'br' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'PS_JS_THEME_CACHE_1', 'id' => 'PS_JS_THEME_CACHE_1',
@@ -244,7 +239,6 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'switch', 'type' => 'switch',
'label' => $this->l('Minify HTML'), 'label' => $this->l('Minify HTML'),
'name' => 'PS_HTML_THEME_COMPRESSION', 'name' => 'PS_HTML_THEME_COMPRESSION',
'br' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'PS_HTML_THEME_COMPRESSION_1', 'id' => 'PS_HTML_THEME_COMPRESSION_1',
@@ -262,7 +256,6 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'switch', 'type' => 'switch',
'label' => $this->l('Compress inline JavaScript in HTML'), 'label' => $this->l('Compress inline JavaScript in HTML'),
'name' => 'PS_JS_HTML_THEME_COMPRESSION', 'name' => 'PS_JS_HTML_THEME_COMPRESSION',
'br' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'PS_JS_HTML_THEME_COMPRESSION_1', 'id' => 'PS_JS_HTML_THEME_COMPRESSION_1',
@@ -281,7 +274,6 @@ class AdminPerformanceControllerCore extends AdminController
'label' => $this->l('Apache optimization'), 'label' => $this->l('Apache optimization'),
'name' => 'PS_HTACCESS_CACHE_CONTROL', 'name' => 'PS_HTACCESS_CACHE_CONTROL',
'hint' => $this->l('This will add directives to your .htaccess file, which should improve caching and compression.'), 'hint' => $this->l('This will add directives to your .htaccess file, which should improve caching and compression.'),
'is_bool' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'PS_HTACCESS_CACHE_CONTROL_1', 'id' => 'PS_HTACCESS_CACHE_CONTROL_1',
@@ -352,7 +344,7 @@ class AdminPerformanceControllerCore extends AdminController
'title' => $this->l('Ciphering'), 'title' => $this->l('Ciphering'),
'icon' => 'icon-desktop' 'icon' => 'icon-desktop'
), ),
'desc' => $this->l('Mcrypt is faster than our custom BlowFish class, but requires the PHP extension "mcrypt". If you change this configuration, all cookies will be reset.'), 'hint' => $this->l('Mcrypt is faster than our custom BlowFish class, but requires the PHP extension "mcrypt". If you change this configuration, all cookies will be reset.'),
'input' => array( 'input' => array(
array( array(
'type' => 'hidden', 'type' => 'hidden',
@@ -362,7 +354,6 @@ class AdminPerformanceControllerCore extends AdminController
'type' => 'radio', 'type' => 'radio',
'label' => $this->l('Algorithm'), 'label' => $this->l('Algorithm'),
'name' => 'PS_CIPHER_ALGORITHM', 'name' => 'PS_CIPHER_ALGORITHM',
'br' => true,
'values' => array( 'values' => array(
array( array(
'id' => 'PS_CIPHER_ALGORITHM_1', 'id' => 'PS_CIPHER_ALGORITHM_1',