Post by Eden85 » Thu Apr 16, 2020 11:55 am

Its been a whole week of going back and forth with opencart support and my hosting support HOSTGATOR.

I am using Journal 3 Theme for my opencart shop, the issue i am having is if i add a product to cart then let's say i decide to remove it by clicking remove or x the product still shows if i refresh the page it does go away so the problem is cache going on with opencart i called my hosting they checked everything and nothing is an issue with my server this seems to be coming from opencart not sure how to resolve this problem, anyone knows what needs to be done to resolve this problem or anyone else had same issue.

Newbie

Posts

Joined
Thu Apr 16, 2020 11:49 am

Post by thekrotek » Thu Apr 16, 2020 2:09 pm

Contact Journal developers on the matter.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by paulfeakins » Thu Apr 16, 2020 4:00 pm

Eden85 wrote:
Thu Apr 16, 2020 11:55 am
Its been a whole week of going back and forth with opencart support and my hosting support HOSTGATOR.

I am using Journal 3 Theme
Image

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by letxobnav » Thu Apr 16, 2020 4:54 pm

Either you are browser caching too much or journal is.
So check your server config/htaccess first on what you have there on expire headers.
If those are ok, start bothering journal.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Eden85 » Fri Apr 17, 2020 2:38 am

I added this to system/framework, and this resolved the issue. thank you for your help really appreciate it.

Code: Select all

$response->addHeader('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
$response->addHeader('Pragma: no-cache');
Hopefully there won't be any more issues because honestly i am afraid to start adding so many products and information and later see another issue popping up while store is live. I am guessing this was an issue from Opencart not Journal 3 so maybe a clean working update to opencart would be great.
Last edited by straightlight on Fri Apr 17, 2020 2:39 am, edited 1 time in total.
Reason: Please add the code tags. This is already in the FAQ!

Newbie

Posts

Joined
Thu Apr 16, 2020 11:49 am

Post by Eden85 » Fri Apr 17, 2020 2:43 am

letxobnav wrote:
Thu Apr 16, 2020 4:54 pm
Either you are browser caching too much or journal is.
So check your server config/htaccess first on what you have there on expire headers.
If those are ok, start bothering journal.
This is what i have set on expires under public_html htaccess

Code: Select all

<IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType text/html "access plus 3 days"
    ExpiresByType text/xml "access plus 1 seconds"
    ExpiresByType text/plain "access plus 1 seconds"
    ExpiresByType application/xml "access plus 1 seconds"
    ExpiresByType application/rss+xml "access plus 1 seconds"
    ExpiresByType application/json "access plus 1 seconds"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/javascript "access plus 1 week"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-javascript "access plus 1 week"
    ExpiresByType image/x-ico "access plus 1 year"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType application/pdf "access plus 1 month"

# Use PHP71 as default
<IfModule mime_module>
 AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>




Opencart i have it installed it in separate folder in public_html and htaccess i have all this, if there is something i need to change or remove please let me know not very familiar with all htaccess.


# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com


Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]


# Use PHP71 as default
<IfModule mime_module>
 AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
<IfModule mod_suphp.c>
    suPHP_ConfigPath /home1/garagerepair/public_html/shop/
</IfModule>

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none
Last edited by straightlight on Fri Apr 17, 2020 2:45 am, edited 1 time in total.
Reason: Code tags.

Newbie

Posts

Joined
Thu Apr 16, 2020 11:49 am

Post by straightlight » Fri Apr 17, 2020 2:45 am

Please add the code tags!

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by letxobnav » Fri Apr 17, 2020 8:35 am

Always set default to now then specify the rest in case you miss one.
Do not browser cache html unless you run a static website which you are not.

Code: Select all

ExpiresDefault A0
ExpiresByType text/html "access plus 0 seconds"
but keep the framework change as its headers overrule wrong htaccess settings and makes sure that nothing coming out of the response class is browser (and proxy) cached.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Jaesin » Fri Apr 17, 2020 9:46 am

Journal user here as well (boooo, hissss)
I realize you did resolve the problem now.
I had the same problem except with mine, my product comparison did not work where I could not remove an item from comparison.
I found the solution here in this thread -
viewtopic.php?t=211118

New member

Posts

Joined
Wed Aug 23, 2017 11:31 pm
Who is online

Users browsing this forum: No registered users and 11 guests