hcshop Posted June 14, 2013 Share Posted June 14, 2013 Sorry if someone already posted this issue, but I haven't find nothing, maybe I used the wrong keywords... Here's what happens: If I change something in BO (add a new product, or change quantity or a price) the update doesn't show up in frontstore unless... the customer refreshes the page of his browser! I've tried to figure out how cache works, but I am not an expert (actually I am shocked how i managed to get here with ps!). Any step by step suggestion would be greatly appreciated! Thanks! Link to comment Share on other sites More sharing options...
touchdez Posted June 17, 2013 Share Posted June 17, 2013 I am going to join you here, hcshop! I add a new products to the store, but the "New Products" block shows "Do not allow new products at this time". The time period is set to 21 days. What do I have to do to change it? Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 Well, refresh is necessary to see changes in the front office. I think that i don't understand you well. For example, you've got product page. you're on it (in front office) then you changed something in BO (related to this product, for example: price). now you have to refresh front office to see changes. right? if so, i have to say this is how all of this works. i think that your issue is a bit different, have you tried to clear the cache? Link to comment Share on other sites More sharing options...
touchdez Posted June 17, 2013 Share Posted June 17, 2013 I do a hard refresh and clear the cache. The wording under the "New Products" block is still there - no change. Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 my post was related to the hcshop topic. i think that your issue is not related to the main case in this thread. Link to comment Share on other sites More sharing options...
touchdez Posted June 17, 2013 Share Posted June 17, 2013 Sorry, vekia! I will try and figure out why the new products do not show up in the right column. Link to comment Share on other sites More sharing options...
hcshop Posted June 17, 2013 Author Share Posted June 17, 2013 Thanks for answering. Here's the problem:Let's say a customer visits my shop, and after that I make some changes (eg. new products, etc), When the customer visits the shop again (I tried three days after) he sees the old version, unless HE presses F5 on his browser. I tried handling cache, blowfish, manually deleting smarty folders... I am running out of ideas. I suppose is something related to hosting. Possible? Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 17, 2013 Share Posted June 17, 2013 Hi hcshop, do you a link of the issue. Are you sure that all customers are seeing this the same way. If the customer has the browser cache on and returned to your site, he would need to refresh and clear the browser cache in order to see the changes you made. Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 it looks like the problem is with cache in the browser, not in the store for example, check this: 1) view website in the chrome browser 2) change something in your store, for example: price 3) open store in different browser changes appear? if so, the problem is with cache in browser - not in store. Link to comment Share on other sites More sharing options...
hcshop Posted June 18, 2013 Author Share Posted June 18, 2013 SOLVED: I tried with different PCs, different OS and different browsers. Problem is the same. I am not an expert, but I worked on this issue by pure logic I thought that browser in some way "compares" the page in his own cache with the one on the server, maybe with some sort of ID or via creation date, i really don't know. So maybe PS updates his pages "spontaneously" every, let's say, a week. Well, here's the solution that worked for me. 1) via FTP find .htaccess file 2) edit it with Notepad and find the part with "<IfModule mod_expires.c>" 3) delete his content and add "ExpiresActive Off" The resulting content should be <IfModule mod_expires.c> ExpiresActive Off </IfModule> This worked for me. Now, asking you experts just for curiosity... Do you think this issue can be caused by some setting of the hosting partner, which tries to "keep down" traffic? Because i Installed PS in a free web hosting space to "play" with settings without destroying my entire work, and I hadn't this problem, even with the original content of .htaccess. Thanks for your opinions. Link to comment Share on other sites More sharing options...
vekia Posted June 18, 2013 Share Posted June 18, 2013 definitely yes, this issue is caused by your hosting plan settings. Mod_expires manipulates the Expires headers returned from the hosting server, letting you control how long a client's Web browser caches resources. You want to tune the duration of your caching to optimize performance while still considering how often you update the resource. 1 Link to comment Share on other sites More sharing options...
hcshop Posted June 18, 2013 Author Share Posted June 18, 2013 Thank you very much. Do you think they can change these settings again in future? I mean, should I check every now and then this file to see if it's back to the original setting? Link to comment Share on other sites More sharing options...
vekia Posted June 18, 2013 Share Posted June 18, 2013 well, i think: yes, then can. For example, they can disable the mod_expires apache module, then can disable possibility to change value of this param etc. but in my opinion there is nothing to worry about Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 18, 2013 Share Posted June 18, 2013 I would say that if this problem happened randomly, you should contact your hosting provider or find a way to keep your hosting provider from changing it again. If this was the way it always was then I wouldn't see it as a problem. Link to comment Share on other sites More sharing options...
Recommended Posts