Jump to content

Should I enable cache-file in adv.Parameters-performance?


Recommended Posts

After checking with my hosting provider I was told thet they do not support Mcached, Xcache or APC and neither Ps allows it to me, but it allows me to choose the file system...

Should I choose it like in the snapshot to improve speed? If so which depth?

 

Thank you..

 

post-794866-0-05587900-1407777272_thumb.jpg

Edited by Anthony DeLa Riviere (see edit history)
Link to comment
Share on other sites

I just looked at your shop, for as little that is on front page and the load speed, visitor experience is not so good.

 

your javascript is loading top, that is not good.  1.6 supports javascript load bottom.  this is about all I think you could do with this hosting plan to speed it up.

 

re file cache, yes use level 1, maybe try 2-3...

 

the only issue I have ever experienced with file cache is that module install/uninstall can be have oddly.  turn off file cache when done working with a module.  should be good to go.

Link to comment
Share on other sites

thank you!! I will enable cache with directory level 2... (will it go better with 3..?)

But how do I move java script load to bottom?

visit any front office page, right click-->view source-->F .js-->you want javascript bottom

to load bottom-->bo-->advanced parms-->performacne-->set load java bottom (1.6 only)

 

don't know level of perfect file cache, test it..I think 1 is good

Link to comment
Share on other sites

Thank you for your answer El Patron, but now I am really puzzled because I had already set up advance parameters-performance to "Move JavaScript to the end" like in the snapshot shows:

post-794866-0-60969900-1407812108_thumb.jpg

 

Also, when I see the source of the hema page of the front office the only java I see belongs to the currency part, which is in the header part because the module to display it is hooked to the header...

post-794866-0-04320200-1407812102_thumb.jpg

 

Don´t understand nothing of this, please El Patron, some help over this..

Edited by Anthony DeLa Riviere (see edit history)
Link to comment
Share on other sites

Thank you for your answer El Patron, but now I am really puzzled because I had already set up advance parameters-performance to "Move JavaScript to the end" like in the snapshot shows:

attachicon.gifp.jpg

 

Also, when I see the source of the hema page of the front office the only java I see belongs to the currency part, which is in the header part because the module to display it is hooked to the header...

attachicon.gifj.jpg

 

Don´t understand nothing of this, please El Patron, some help over this..

 

loading bottom when I looked this time.  Maybe I mis-read it  the last time.

 

go to the very bottom of source and find .js looking up, there you will see a CCC .js file with all java.

  • Like 1
Link to comment
Share on other sites

Thank you El Patrón for taking your time

 

I know that this one seems long and nobody has answered, but it´s related to speed performance... May be you could give me a couple of tips or directions, I would really apreciate it:

 

http://www.prestashop.com/forums/topic/349986-how-to-improve-google-page-speed-report/

 

Thank you

Link to comment
Share on other sites

Thank you El Patrón for taking your time

 

I know that this one seems long and nobody has answered, but it´s related to speed performance... May be you could give me a couple of tips or directions, I would really apreciate it:

 

http://www.prestashop.com/forums/topic/349986-how-to-improve-google-page-speed-report/

 

Thank you

 

I think in another posting I showed you how to turn on debug profiling.  Here you will find information about where your shop could use improvement.  Focus on that...and then if you are happy with profiling, then consider fast server environment.

  • Like 1
Link to comment
Share on other sites

I think in another posting I showed you how to turn on debug profiling.  Here you will find information about where your shop could use improvement.  Focus on that...and then if you are happy with profiling, then consider fast server environment.

My site www.goodpsychologists.com is on debug mode now, but I dont get any messages... I´ll leave it like this for 30 minutes to see if you can see anything...

Link to comment
Share on other sites

yes:

 

<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/
 
/* Debug only */
if ($_SERVER['QUERY_STRING'] == 'error') {
define('_PS_MODE_DEV_', true);
}else{
define('_PS_MODE_DEV_', false);
}
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
if (_PS_MODE_DEV_)
{
@ini_set('display_errors', 'on');
@error_reporting(E_ALL | E_STRICT);
define('_PS_DEBUG_SQL_', true);
}
else
{
@ini_set('display_errors', 'off');
define('_PS_DEBUG_SQL_', false);
}
if ($_SERVER['QUERY_STRING'] == 'profile') {
define('_PS_DEBUG_PROFILING_', true);
}else{
define('_PS_DEBUG_PROFILING_', true);
}
 
define('_PS_MODE_DEMO_', false);
 
$currentDir = dirname(__FILE__);
 
if (!defined('PHP_VERSION_ID'))
{
    $version = explode('.', PHP_VERSION);
    define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
}
 
/* Directories */
if (!defined('_PS_ROOT_DIR_'))
{
define('_PS_ROOT_DIR_', realpath($currentDir.'/..'));
define('_PS_CORE_DIR_', _PS_ROOT_DIR_);
}
else
define('_PS_CORE_DIR_', realpath($currentDir.'/..'));
 
define('_PS_ALL_THEMES_DIR_',        _PS_ROOT_DIR_.'/themes/');
/* BO THEMES */
if (defined('_PS_ADMIN_DIR_'))
define('_PS_BO_ALL_THEMES_DIR_', _PS_ADMIN_DIR_.'/themes/');
define('_PS_CACHE_DIR_', _PS_ROOT_DIR_.'/cache/');
define('_PS_CONFIG_DIR_', _PS_CORE_DIR_.'/config/');
define('_PS_CLASS_DIR_',             _PS_CORE_DIR_.'/classes/');
define('_PS_DOWNLOAD_DIR_',          _PS_ROOT_DIR_.'/download/');
define('_PS_MAIL_DIR_',              _PS_CORE_DIR_.'/mails/');
if (!defined('_PS_MODULE_DIR_'))
define('_PS_MODULE_DIR_',        _PS_ROOT_DIR_.'/modules/');
if (!defined('_PS_OVERRIDE_DIR_'))
    define('_PS_OVERRIDE_DIR_',          _PS_ROOT_DIR_.'/override/');
define('_PS_PDF_DIR_',               _PS_CORE_DIR_.'/pdf/');
define('_PS_TRANSLATIONS_DIR_',      _PS_ROOT_DIR_.'/translations/');
define('_PS_UPLOAD_DIR_', _PS_ROOT_DIR_.'/upload/');
 
define('_PS_CONTROLLER_DIR_',        _PS_CORE_DIR_.'/controllers/');
define('_PS_ADMIN_CONTROLLER_DIR_',  _PS_CORE_DIR_.'/controllers/admin/');
define('_PS_FRONT_CONTROLLER_DIR_',  _PS_CORE_DIR_.'/controllers/front/');
 
define('_PS_TOOL_DIR_',              _PS_CORE_DIR_.'/tools/');
define('_PS_GEOIP_DIR_',             _PS_TOOL_DIR_.'geoip/');
define('_PS_PEAR_XML_PARSER_PATH_',  _PS_TOOL_DIR_.'pear_xml_parser/');
define('_PS_SWIFT_DIR_',             _PS_TOOL_DIR_.'swift/');
define('_PS_TAASC_PATH_',            _PS_TOOL_DIR_.'taasc/');
define('_PS_TCPDF_PATH_',            _PS_TOOL_DIR_.'tcpdf/');
 
define('_PS_IMG_DIR_',               _PS_ROOT_DIR_.'/img/');
 
if (!defined('_PS_HOST_MODE_'))
define('_PS_CORE_IMG_DIR_',      _PS_CORE_DIR_.'/img/');
else
define('_PS_CORE_IMG_DIR_',      _PS_ROOT_DIR_.'/img/');
 
define('_PS_CAT_IMG_DIR_',           _PS_IMG_DIR_.'c/');
define('_PS_COL_IMG_DIR_', _PS_IMG_DIR_.'co/');
define('_PS_EMPLOYEE_IMG_DIR_',      _PS_IMG_DIR_.'e/');
define('_PS_GENDERS_DIR_',           _PS_IMG_DIR_.'genders/');
define('_PS_LANG_IMG_DIR_',          _PS_IMG_DIR_.'l/');
define('_PS_MANU_IMG_DIR_',          _PS_IMG_DIR_.'m/');
define('_PS_ORDER_STATE_IMG_DIR_',   _PS_IMG_DIR_.'os/');
define('_PS_PROD_IMG_DIR_',          _PS_IMG_DIR_.'p/');
define('_PS_SCENE_IMG_DIR_',         _PS_IMG_DIR_.'scenes/');
define('_PS_SCENE_THUMB_IMG_DIR_',   _PS_IMG_DIR_.'scenes/thumbs/');
define('_PS_SHIP_IMG_DIR_',          _PS_IMG_DIR_.'s/');
define('_PS_STORE_IMG_DIR_', _PS_IMG_DIR_.'st/');
define('_PS_SUPP_IMG_DIR_',          _PS_IMG_DIR_.'su/');
define('_PS_TMP_IMG_DIR_',           _PS_IMG_DIR_.'tmp/');
 
/* settings php */
define('_PS_TRANS_PATTERN_',            '(.*[^\\\\])');
define('_PS_MIN_TIME_GENERATE_PASSWD_', '360');
if (!defined('_PS_MAGIC_QUOTES_GPC_'))
define('_PS_MAGIC_QUOTES_GPC_',         get_magic_quotes_gpc());
 
define('_CAN_LOAD_FILES_', 1);
 
/* Order statuses
Order statuses have been moved into config.inc.php file for backward compatibility reasons */
 
/* Tax behavior */
define('PS_PRODUCT_TAX', 0);
define('PS_STATE_TAX', 1);
define('PS_BOTH_TAX', 2);
 
define('_PS_PRICE_DISPLAY_PRECISION_', 2);
define('PS_TAX_EXC', 1);
define('PS_TAX_INC', 0);
 
define('PS_ORDER_PROCESS_STANDARD', 0);
define('PS_ORDER_PROCESS_OPC', 1);
 
define('PS_ROUND_UP', 0);
define('PS_ROUND_DOWN', 1);
define('PS_ROUND_HALF', 2);
 
/* Registration behavior */
define('PS_REGISTRATION_PROCESS_STANDARD', 0);
define('PS_REGISTRATION_PROCESS_AIO', 1);
 
/* Carrier::getCarriers() filter */
// these defines are DEPRECATED since 1.4.5 version
define('PS_CARRIERS_ONLY', 1);
define('CARRIERS_MODULE', 2);
define('CARRIERS_MODULE_NEED_RANGE', 3);
define('PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE', 4);
define('ALL_CARRIERS', 5);
 
/* SQL Replication management */
define('_PS_USE_SQL_SLAVE_', 0);
 
/* PS Technical configuration */
define('_PS_ADMIN_PROFILE_', 1);
 
/* Stock Movement */
define('_STOCK_MOVEMENT_ORDER_REASON_', 3);
define('_STOCK_MOVEMENT_MISSING_REASON_', 4);
 
/**
 * @deprecated 1.5.0.1
 * @see Configuration::get('PS_CUSTOMER_GROUP')
 */
define('_PS_DEFAULT_CUSTOMER_GROUP_', 3);
 
define('_PS_CACHEFS_DIRECTORY_', _PS_ROOT_DIR_.'/cache/cachefs/');
 
/* Geolocation */
define('_PS_GEOLOCATION_NO_CATALOG_', 0);
define('_PS_GEOLOCATION_NO_ORDER_', 1);
 
define('MIN_PASSWD_LENGTH', 8);
 
define('_PS_SMARTY_NO_COMPILE_', 0);
define('_PS_SMARTY_CHECK_COMPILE_', 1);
define('_PS_SMARTY_FORCE_COMPILE_', 2);
 
define('_PS_SMARTY_CONSOLE_CLOSE_', 0);
define('_PS_SMARTY_CONSOLE_OPEN_BY_URL_', 1);
define('_PS_SMARTY_CONSOLE_OPEN_', 2);
 
define('_PS_JQUERY_VERSION_', '1.11.0');
Link to comment
Share on other sites

you or someone else has modified core

 

if ($_SERVER['QUERY_STRING'] == 'profile') {
define('_PS_DEBUG_PROFILING_', true);
}else{
define('_PS_DEBUG_PROFILING_', true);
}
 
that does not existing in native prestashop...
 
you have gone off the reservation, in that what else has been changed?
 
normally what you attempted to do works 'every' time.  but with core changes..not sure what is wrong.
Link to comment
Share on other sites

Done, now it is in regular debug:

 

<?php

/*

* 2007-2014 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Open Software License (OSL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:


* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

*  @author PrestaShop SA <[email protected]>

*  @copyright  2007-2014 PrestaShop SA

*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*/

 

/* Debug only */

define('_PS_MODE_DEV_', false);

/* Compatibility warning */

define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);

if (_PS_MODE_DEV_)

{

@ini_set('display_errors', 'on');

@error_reporting(E_ALL | E_STRICT);

define('_PS_DEBUG_SQL_', true);

}

else

{

@ini_set('display_errors', 'off');

define('_PS_DEBUG_SQL_', false);

}

 

define('_PS_DEBUG_PROFILING_', true);

define('_PS_MODE_DEMO_', false);

 

$currentDir = dirname(__FILE__);

 

if (!defined('PHP_VERSION_ID'))

{

    $version = explode('.', PHP_VERSION);

    define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));

}

 

if (!defined('_PS_VERSION_') && (getenv('_PS_VERSION_') || getenv('REDIRECT__PS_VERSION_')))

define('_PS_VERSION_', getenv('_PS_VERSION_') ? getenv('_PS_VERSION_') : getenv('REDIRECT__PS_VERSION_'));

 

if (!defined('_PS_HOST_MODE_') && (getenv('_PS_HOST_MODE_') || getenv('REDIRECT__PS_HOST_MODE_')))

define('_PS_HOST_MODE_', getenv('_PS_HOST_MODE_') ? getenv('_PS_HOST_MODE_') : getenv('REDIRECT__PS_HOST_MODE_'));

 

if (!defined('_PS_ROOT_DIR_') && (getenv('_PS_ROOT_DIR_') || getenv('REDIRECT__PS_ROOT_DIR_')))

define('_PS_ROOT_DIR_', getenv('_PS_ROOT_DIR_') ? getenv('_PS_ROOT_DIR_') : getenv('REDIRECT__PS_ROOT_DIR_'));

 

/* Directories */

if (!defined('_PS_ROOT_DIR_'))

{

define('_PS_ROOT_DIR_', realpath($currentDir.'/..'));

 

if (!defined('_PS_CORE_DIR_'))

define('_PS_CORE_DIR_', _PS_ROOT_DIR_);

}

elseif (!defined('_PS_CORE_DIR_'))

define('_PS_CORE_DIR_', realpath($currentDir.'/..'));

 

define('_PS_ALL_THEMES_DIR_',        _PS_ROOT_DIR_.'/themes/');

/* BO THEMES */

if (defined('_PS_ADMIN_DIR_'))

define('_PS_BO_ALL_THEMES_DIR_', _PS_ADMIN_DIR_.'/themes/');

define('_PS_CACHE_DIR_', _PS_ROOT_DIR_.'/cache/');

define('_PS_CONFIG_DIR_', _PS_CORE_DIR_.'/config/');

define('_PS_CLASS_DIR_',             _PS_CORE_DIR_.'/classes/');

define('_PS_DOWNLOAD_DIR_',          _PS_ROOT_DIR_.'/download/');

define('_PS_MAIL_DIR_',              _PS_CORE_DIR_.'/mails/');

if (!defined('_PS_MODULE_DIR_'))

define('_PS_MODULE_DIR_',        _PS_ROOT_DIR_.'/modules/');

if (!defined('_PS_OVERRIDE_DIR_'))

    define('_PS_OVERRIDE_DIR_',          _PS_ROOT_DIR_.'/override/');

define('_PS_PDF_DIR_',               _PS_CORE_DIR_.'/pdf/');

define('_PS_TRANSLATIONS_DIR_',      _PS_ROOT_DIR_.'/translations/');

define('_PS_UPLOAD_DIR_', _PS_ROOT_DIR_.'/upload/');

 

define('_PS_CONTROLLER_DIR_',        _PS_CORE_DIR_.'/controllers/');

define('_PS_ADMIN_CONTROLLER_DIR_',  _PS_CORE_DIR_.'/controllers/admin/');

define('_PS_FRONT_CONTROLLER_DIR_',  _PS_CORE_DIR_.'/controllers/front/');

 

define('_PS_TOOL_DIR_',              _PS_CORE_DIR_.'/tools/');

define('_PS_GEOIP_DIR_',             _PS_TOOL_DIR_.'geoip/');

define('_PS_PEAR_XML_PARSER_PATH_',  _PS_TOOL_DIR_.'pear_xml_parser/');

define('_PS_SWIFT_DIR_',             _PS_TOOL_DIR_.'swift/');

define('_PS_TAASC_PATH_',            _PS_TOOL_DIR_.'taasc/');

define('_PS_TCPDF_PATH_',            _PS_TOOL_DIR_.'tcpdf/');

 

define('_PS_IMG_DIR_',               _PS_ROOT_DIR_.'/img/');

 

if (!defined('_PS_HOST_MODE_'))

define('_PS_CORE_IMG_DIR_',      _PS_CORE_DIR_.'/img/');

else

define('_PS_CORE_IMG_DIR_',      _PS_ROOT_DIR_.'/img/');

 

define('_PS_CAT_IMG_DIR_',           _PS_IMG_DIR_.'c/');

define('_PS_COL_IMG_DIR_', _PS_IMG_DIR_.'co/');

define('_PS_EMPLOYEE_IMG_DIR_',      _PS_IMG_DIR_.'e/');

define('_PS_GENDERS_DIR_',           _PS_IMG_DIR_.'genders/');

define('_PS_LANG_IMG_DIR_',          _PS_IMG_DIR_.'l/');

define('_PS_MANU_IMG_DIR_',          _PS_IMG_DIR_.'m/');

define('_PS_ORDER_STATE_IMG_DIR_',   _PS_IMG_DIR_.'os/');

define('_PS_PROD_IMG_DIR_',          _PS_IMG_DIR_.'p/');

define('_PS_SCENE_IMG_DIR_',         _PS_IMG_DIR_.'scenes/');

define('_PS_SCENE_THUMB_IMG_DIR_',   _PS_IMG_DIR_.'scenes/thumbs/');

define('_PS_SHIP_IMG_DIR_',          _PS_IMG_DIR_.'s/');

define('_PS_STORE_IMG_DIR_', _PS_IMG_DIR_.'st/');

define('_PS_SUPP_IMG_DIR_',          _PS_IMG_DIR_.'su/');

define('_PS_TMP_IMG_DIR_',           _PS_IMG_DIR_.'tmp/');

 

/* settings php */

define('_PS_TRANS_PATTERN_',            '(.*[^\\\\])');

define('_PS_MIN_TIME_GENERATE_PASSWD_', '360');

if (!defined('_PS_MAGIC_QUOTES_GPC_'))

define('_PS_MAGIC_QUOTES_GPC_',         get_magic_quotes_gpc());

 

define('_CAN_LOAD_FILES_', 1);

 

/* Order statuses

Order statuses have been moved into config.inc.php file for backward compatibility reasons */

 

/* Tax behavior */

define('PS_PRODUCT_TAX', 0);

define('PS_STATE_TAX', 1);

define('PS_BOTH_TAX', 2);

 

define('_PS_PRICE_DISPLAY_PRECISION_', 2);

define('PS_TAX_EXC', 1);

define('PS_TAX_INC', 0);

 

define('PS_ORDER_PROCESS_STANDARD', 0);

define('PS_ORDER_PROCESS_OPC', 1);

 

define('PS_ROUND_UP', 0);

define('PS_ROUND_DOWN', 1);

define('PS_ROUND_HALF', 2);

 

/* Registration behavior */

define('PS_REGISTRATION_PROCESS_STANDARD', 0);

define('PS_REGISTRATION_PROCESS_AIO', 1);

 

/* Carrier::getCarriers() filter */

// these defines are DEPRECATED since 1.4.5 version

define('PS_CARRIERS_ONLY', 1);

define('CARRIERS_MODULE', 2);

define('CARRIERS_MODULE_NEED_RANGE', 3);

define('PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE', 4);

define('ALL_CARRIERS', 5);

 

/* SQL Replication management */

define('_PS_USE_SQL_SLAVE_', 0);

 

/* PS Technical configuration */

define('_PS_ADMIN_PROFILE_', 1);

 

/* Stock Movement */

define('_STOCK_MOVEMENT_ORDER_REASON_', 3);

define('_STOCK_MOVEMENT_MISSING_REASON_', 4);

 

/**

 * @deprecated 1.5.0.1

 * @see Configuration::get('PS_CUSTOMER_GROUP')

 */

define('_PS_DEFAULT_CUSTOMER_GROUP_', 3);

 

define('_PS_CACHEFS_DIRECTORY_', _PS_ROOT_DIR_.'/cache/cachefs/');

 

/* Geolocation */

define('_PS_GEOLOCATION_NO_CATALOG_', 0);

define('_PS_GEOLOCATION_NO_ORDER_', 1);

 

define('MIN_PASSWD_LENGTH', 8);

 

define('_PS_SMARTY_NO_COMPILE_', 0);

define('_PS_SMARTY_CHECK_COMPILE_', 1);

define('_PS_SMARTY_FORCE_COMPILE_', 2);

 

define('_PS_SMARTY_CONSOLE_CLOSE_', 0);

define('_PS_SMARTY_CONSOLE_OPEN_BY_URL_', 1);

define('_PS_SMARTY_CONSOLE_OPEN_', 2);

 

define('_PS_JQUERY_VERSION_', '1.11.0');

Link to comment
Share on other sites

El Patron, I finally got it right... Please take a look now I will leave it on debug mode for a while, see where I can do some improvements and point me in the right path please...

 

little by little, we learn more yes?

 

what you need to look for is modules hooked to areas that are slow, investigate, learn, become a prestanerd.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...