Jump to content



Member Since 05 Feb 2020
Offline Last Active Oct 14 2020 01:50 PM

Posts I've Made

In Topic: Nginx Full Page Caching

20 March 2020 - 12:17 PM

You cant update or purge nginx cache, use full page caching with varnish


So are you saying the ONLY way to get caching to work with CS Cart is Varnish?

In Topic: Nginx Full Page Caching

20 March 2020 - 12:28 AM

Hi -

Does anyone use this plugin or have a version of it working with Nginx?  I've been trying to get something like this to work, but seem to get most of my cache hits to BYPASS.  Not sure if the plugin version I was able to download in a previous message on this thread was incomplete?  But I can't get to the poppedweb.com site - seems to be down.  Just looking for a little guidance on getting Nginx cache working reliably with CS Cart.  Many thanks!



In Topic: High Availability - Multiple Cs Cart App Servers

06 March 2020 - 01:10 PM

For anyone that stumbles up this in the future, the problem was SSL had to be enabled for NGINX on every server the request goes through before getting to CS-Cart.  CS-Cart gets confused if you try to do plain text behind, say, SSL termination at an AWS Elastic Load Balancer.  So, I installed my SSL certs on all NGINX servers and the crazy re-directing went away.

In Topic: Smarty Compiler Issue - After Upgrade To Mariadb 10.1

05 March 2020 - 01:16 AM

I had this problem with the Thin Theme too.  So are you basically hosed if you disable that add-on or is there a way to fix it?

In Topic: High Availability - Multiple Cs Cart App Servers

04 March 2020 - 02:29 AM

I dug even further, and found out that this block of code in fn.control.php kicks us into this loop:



// if we are not on https but controller is secure, redirect to https
if (!defined('HTTPS') && $controller_secure_status === 'active') {
   fn_redirect(Registry::get('config.https_location') . '/' . Registry::get('config.current_url'), false, true);
so I think that tells me that CS-Cart doesn't think HTTPS is not defined, but the controller is supposed to be secure?  When I commented it out it turned out I wasn't on a secure connection, even though SSL is terminated at my ELB and passing the request to 2 NGINX servers that then pass to NGINX servers running CS-Cart (confusing probably).  So I'm starting to think there's an NGINX config I'm possibly missing along the way here to ensure CS-Cart knows that the connection is secure and not to redirect.