Jump to content

[solved wp bulletproof security blocking]Cannot see changes? Cache problem?


Recommended Posts

Hi Guys,

I am in the process of setting up a website using Prestashop and have come across a problem that i'm hoping you may be able to help with?

Whenever I make a change to the site the change doesn't appear until i've done a forced refresh (shift + refresh), this happens within both the CMS and front-end.

 

Example:
1. Click on homepage, add a product to cart.
2. Click on another page, item is still in cart.
3. Click on homepage again, item has disappeared from cart.
4. Do forced refresh (shift+refresh) and product appears in cart.

***This is the same for virtually everything within both the front-end and Back-end***

I've tried various combinations of settings within the CMS (especially Performance menu), a new install of prestashop, deleting the .htaccess file, all without success, and the problem is there regardless of what browser or operating system I use.

I've contacted my host to see if it is a server configuration error but as I have a few other sites (wordpress, html) using the same server without any issues i doubt it is a configuration issue.

I was running this site with a previous version of Prestashop (1.3 something I think) on this server up until about a year ago when I pulled it down, now I want to build a new one with the latest version but can't seem to find a fix for this issue so would really appreciate any help you can give me.

Environment
Prestashop Version: 1.5.5.0
PHP Version: 5.3.26
Theme: Issue appears in both Default and Custom theme

What i've tried so far
Every Smarty setting (Force compilation, etc)
Cache enabled and disabled
Cleared smarty cache
Apache optimisation setting enabled and disabled
All CCC settings
Both Ciphering settings
Caching using 'File System' and disabled
Canonical redirect enabled and disabled
Apache Multiview enabled and disabled
Apache Mod Security enabled and disabled
New Install of Prestashop
Deleting .htaccess file
Tested on Firefox and Safari
Tested on MacOS 10.6 and Windows 7

Edited by El Patron (see edit history)
Link to comment
Share on other sites

pages may be stored by mod_expires, i.e. cache's to your browser and does not refresh until it either expires or you f5 (refresh)...

 

you said you deleted .htaccess which has the expiry definitions...but not sure that would automatically refresh fetched content i.e. expire early that content.

 

you have covered a lot of ground of what you have 'tried', when it may be as simple as clearing browse cache...after each change...

Link to comment
Share on other sites

Hi El Patron,

 

Thanks for the reply. I've just updated my description with an example as I probably didn't explain it very well. This is definately not normal behaviour, as it stands at the moment a customer would have to do a forced refresh everytime they visit a page for a second time after adding something to the cart.

Link to comment
Share on other sites

Hi El Patron,

 

Thanks for the reply. I've just updated my description with an example as I probably didn't explain it very well. This is definately not normal behaviour, as it stands at the moment a customer would have to do a forced refresh everytime they visit a page for a second time after adding something to the cart.

 

sell...that won't do...

 

ok so moving on to my next guess

running any varnish cache underneath PS?  if you don't know then ask your hosting company

Link to comment
Share on other sites

Well i'm waiting to hear back from my host on that question but I found a link somewhere in this forum to a site that tells me if my server has varnish installed and it say.... nope, it doesn't.

 

I've been searching for an answer to this problem for a day now so read preatty much every post and comment..... still can't find a fix.

Link to comment
Share on other sites

could not test cart as there are no products and where there are products they were out of stock..then I got bored and wandered back here.

 

I suppose it would be better to know one thing that you changed that does not reflect in your front office.

 

lets start from there...one type of change that is not reflecting in front office

Link to comment
Share on other sites

Sorry, it is still very early in the build, i've had this problem from the start, here's a product:

 

http://www.REMOVED.co.uk/home/4-macbook.html

 

Add it to the basket then visit the homepage, then return to the product page and its disappeared from the basket, do a forced refresh and it appears again.

 

The is the same it the back end, change a setting, save and it fine, go to another page and then back again, setting has reverted back to what is was, do a refresh and it's correct again.

 

Be good for someone else to test it actually to see if you get the same issue.

Edited by DotMedia (see edit history)
Link to comment
Share on other sites

Well to be honest i'm not really sure, I was most definately just on a normal shared hosting plan but then I switched it to a reseller account and i'm not quite sure what it is. I contacted my host and they weren't really much help, all they said was it sounds like a browser caching issue but they didn't really understand the problem I think.

I'm completely stuck with this now, not really sure where to go with it. I vaguely remember before I pulled my old site down which was about a year or so ago i tried an upgrade to the latest version then and this problem was present, think it's since the big overall of Prestashop happened.

Link to comment
Share on other sites

I have never seen this issue before, so I am inclined to think it is a problem with your host. The only sure fire way I can think of to tell if it is a hosting problem is to purchase a cheap shared hosting package from another host and have them migrate the cpanel account. If the problem persists it is with your Prestashop installation. If it is fixed, it is with your host. You should be able to do this for around $5. 

Link to comment
Share on other sites

Right, ok thanks, well what i'll do first is send the link to this forum post to the MidPhase support as it explains exactly what the issue is and they may be able to make so tweak their end. Failing that, i'll do exactly what you've suggested and that should hopefully give me an answer one way or the other.

 

Thanks for you help, if you do happen to think of anything else that I could try please let me know, would be very much appreciated.

Link to comment
Share on other sites

Right, quick update on this issue. After many hours of investigating this problem I have finally fixed it..... Wahoo!

 

I have a couple of addon domains on my hosting account, two of which have Wordpress sites on which have a security plugin installed called 'Bulletproof Security', it turns out that somehow this was effecting my Prestashop site in a completely different directory. I've uninstalled the plugin and updated the .htaccess file and everything is now working fine.

 

Thank you very much to everyone that tried to help, it was very much appreciated.

If any of the forum moderators read this could you mark this as solved please as I don't know how to do it. Thanks. :)

Edited by DotMedia (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...