htech Posted April 24, 2011 Share Posted April 24, 2011 Hi.been playing with prestashop 1.4 but struggling to understand the BO > Preferances > Performance > TAB.1) CCC (Combine, Compress and Cache)...Smart cache for CSSUse CCC for CSS.Keep CSS as originalSmart cache for JavaScriptUse CCC for JavaScript.Keep JavaScript as originalMinify HTMLMinify HTML after "smarty compile" execution.Keep HTML as originalCompress inline JavaScript in HTMLCompress inline JavaScript in HTML after "smarty compile" executionKeep inline JavaScript in HTML as originalHigh risk HTML compressionHTML is compressed but cancels the W3C validation (only when "Minify HTML" is enabled)Keep W3C validationQUESTION : is this important? is it safe to change? why would i want to change it?what would i use it for?2) Media servers (used only with CCC)You must enter another domain or subdomain in order to use cookieless static content.Media server #1Name of the second domain of your shop, (e.g., myshop-media-server-1.com). If you do not have another domain, leave this field blankMedia server #2Name of the third domain of your shop, (e.g., myshop-media-server-2.com). If you do not have another domain, leave this field blankMedia server #3Name of the fourth domain of your shop, (e.g., myshop-media-server-3.com). If you do not have another domain, leave this field blankQUESTION : How or Why would i use these settings? what are they for???3)CipheringMcrypt is faster than our custom BlowFish class, but requires the PHP extension "mcrypt". If you change this configuration, all cookies will be reset.AlgorithmUse Rijndael with mcrypt lib.Keep the custom BlowFish class. QUESTION : whats the difference? which one is good and which one is bad?4)CachingCachingUse cache:Enabled DisabledEnable or disable caching systemCaching system:Add server QUESTION : is it bad to not have this enabled? which one is good? which one is bad? Link to comment Share on other sites More sharing options...
jhnstcks Posted April 24, 2011 Share Posted April 24, 2011 1. CCC will speed up our shop loading times, so it is quite important. It is rumoured that google is taking loading times into consideration for ranking results. But if your theme is not v1.4 compatible and you turn these on it could break your site.3. I think these are used for encrypting your site and making it safe to use and reduces the change have hacking success. As the description says Mcrypt is better than blowfish, but you will need the mcrypt extension installed on your server. Link to comment Share on other sites More sharing options...
htech Posted April 24, 2011 Author Share Posted April 24, 2011 hey manthanks for replying, these questions have been a concern to me for a while now and not understanding them make it even more of a concern.With regards to " 1 " , when say compatible...lets say i made my own theme on prestashop 1.4, which i am currently using....does this make it compatible?cool will have a look at the mcrypt stuff. does mycrypt prevent any modules from working properly? Link to comment Share on other sites More sharing options...
jhnstcks Posted April 24, 2011 Share Posted April 24, 2011 If you are basing your theme on 1.4.1 then there should not be any problems with compatibility.I have Mcrypt enabled on my site and havent found any problems with it. Link to comment Share on other sites More sharing options...
htech Posted April 24, 2011 Author Share Posted April 24, 2011 awesome!!! shot man!any ideas about the other settings? 2 and 4? Link to comment Share on other sites More sharing options...
jhnstcks Posted April 24, 2011 Share Posted April 24, 2011 I'm not sure about media servers so haven't fiddled with that yet.4. is part of the caching system for Prestashop. I have mine turned on using file system depth 3. But not really sure what exactly it does.My site is http://www.snowboarding-goggles.co.uk/ and for me it is pretty quick and I have a slow connection. Link to comment Share on other sites More sharing options...
htech Posted April 24, 2011 Author Share Posted April 24, 2011 hahaha cool thanks man yeah i just got my theme to work nicely and abit scared to start playing with settings at the moment.iv noticed that changing to CCC has made my site alittle faster thanks Link to comment Share on other sites More sharing options...
jhnstcks Posted April 24, 2011 Share Posted April 24, 2011 If you change the settings and your front-end breaks just change the setting back again.I havent been able to get the minify html and compress inline javascript to work properly as on the checkout page the code breaks for some reason. Link to comment Share on other sites More sharing options...
DATO Posted June 5, 2011 Share Posted June 5, 2011 I'm not sure about media servers so haven't fiddled with that yet.4. is part of the caching system for Prestashop. I have mine turned on using file system depth 3. But not really sure what exactly it does.My site is http://www.snowboarding-goggles.co.uk/ and for me it is pretty quick and I have a slow connection. for 4. it's for database. memcached use memory to do the cache. it request server to install the module. it's faster than file cache. Link to comment Share on other sites More sharing options...
curtdonohue Posted June 6, 2011 Share Posted June 6, 2011 Hey htech,I think this might help you. I've created a video that covers what I know about these performance settings. You can find that video here: http://www.prestatraining.com/performance-settings-for-prestashop-version-1-4/. Also, you can find a great follow up post on the subject from Angora here: http://www.prestashop.com/forums/viewthread/103628/configuring___using_prestashop/prestashop_v1_dot_4_performance_settings. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted June 14, 2011 Share Posted June 14, 2011 Curt, when ever I choose this.. Compress inline JavaScript in HTML after "smarty compile" execution it gives me a fatel error in my store.. I have very few add on modules and the standard template.. I have turned off all modules I added and still get this error. Any suggestions? Here is the error: Fatal error: Uncaught exception 'JSMinException' with message 'Unterminated string literal.' in /home/tinao/public_html/tools/js_minify/jsmin.php:94 Stack trace: #0 /home/tinao/public_html/tools/js_minify/jsmin.php(235): JSMin->action(1) #1 /home/tinao/public_html/tools/js_minify/jsmin.php(64): JSMin->min() #2 /home/tinao/public_html/classes/Tools.php(1253): JSMin::minify('var baseDir = '...') #3 /home/tinao/public_html/classes/Tools.php(1240): ToolsCore::packJS('var baseDir = '...') #4 /home/tinao/public_html/classes/Tools.php(1231): ToolsCore::packJSinHTMLpregCallback(Array) #5 /home/tinao/public_html/config/smarty.config.inc.php(197): ToolsCore::packJSinHTML('/\s*(<script\b[...', Array, '<html <html xmlns="ht...') #7 /home/tinao/public_html/tools/smarty/Smarty.class.php(337): Smarty_Internal_Filter_Handler::runFilter('<html Link to comment Share on other sites More sharing options...
curtdonohue Posted June 14, 2011 Share Posted June 14, 2011 Tina,I'm not familiar with that error. Can you tell me what all the settings are on your page? Also, what version of PrestaShop are you using? Lastly, what host are you using? Link to comment Share on other sites More sharing options...
Recommended Posts