khairulaizat92 Posted August 24, 2014 Share Posted August 24, 2014 (edited) Hi there, Ok I have made a lot of test lately to learn myself on how exactly Media Server works on prestashop. So i have made it work by copying these three files from prestashop folder into my media server; 1)img 2)module 3)theme And my media server are actually a subdomain on the same server which i called: static1.mydomain.com static2.mydomain.com static3.mydomain.com I didnt make any changes on those three subdomain point which mean that they on their default folder: public_html/static1 public_html/static2 public_html/static3 So im copying all of those 3 folde3 to each of this /static1 /static2 /static3 Then i activate all of the CCC Smart cache for CSS = YES Smart cache for JavaScript = YES Minify HTML = YES Compress inline JavaScript in HTML = YES Move JavaScript to the end = YES Apache optimization = YES And the front office are loaded perfectly and my test on GTmetric arise from C to A. Now im testing to purchase any product. when im click on the category, suddenly the THEME gone missing. All that left was a picture and words. So im checking (Chrome) by clicking right click > Inspect Element > Console , I found out the error was, .JS and .CSS Not Found. So now im trying by replacing the static domain to my default domain (As i didnt deleted any files from my shop im just copying the files to static). And thos .JS and .CSS are there. So after a few test i found out that this JS and CSS will be produced automatically by the server.So then im disable these two: Smart cache for CSS = NO Smart cache for JavaScript = NO and the JS and CSS can be produced automatically by the server. And there a probability that when im disable those SMART CACHE, the serer arent loading from the media server and might loading from the default server. So can anyone suggest to me in anyway how to fix this? P/S: i Have tried without filling anything in Media Server, and the problem Above Did Not Occured. it only Occured When both (Media server + Smart Cache) being used. Edited August 24, 2014 by khairulaizat92 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now