Jump to content

fastcgi cache + nginx +


bikkembergz

Recommended Posts

Buongiorno a tutti
ho attivato la cache fastcgi notando un incremento di performance notevole.

Ho escluso dalla cache i percorsi delle pagine legate al carrello e alla sezione admin e funziona tutto correttamente.

Il problema è che il counter dei prodotti inseriti nel carrello è presente in tutte le pagine e di conseguenza, quelle cachate non mostrano il numero di prodotti correttamente.

Qualcuno usa fastcgi o altri sistemi di cache e ha risolto questo problema?
     

  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       fastcgi_keep_conn on;
        fastcgi_read_timeout 45s; # wait for php to respond
        fastcgi_send_timeout 45s; # send to php waiting
        client_max_body_size 30M;

        fastcgi_intercept_errors on;
        fastcgi_buffer_size 256k;
        fastcgi_buffers 64 16k;
        fastcgi_busy_buffers_size 256k;

        fastcgi_cache cachename;
        fastcgi_cache_key $scheme$host$request_uri$request_method;
        #fastcgi_cache_key "$scheme$request_method$host$request_uri$cookie_state";  

        fastcgi_cache_valid 200 60m;
        fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
        #fastcgi_cache_use_stale updating;
        fastcgi_cache_bypass $http_pragma $no_cache $http_authorization;
        #fastcgi_cache_bypass $no_cache $http_authorization;
        fastcgi_no_cache $no_cache $http_authorization;

        fastcgi_cache_use_stale updating error timeout invalid_header http_500;
        # Temp file tweak
        # Temp file tweak
        fastcgi_max_temp_file_size 0;
        fastcgi_temp_file_write_size 256k;

 

Link to comment
Share on other sites

  • 2 years later...
On 11/23/2020 at 9:45 AM, bikkembergz said:

Buongiorno a tutti
ho attivato la cache fastcgi notando un incremento di performance notevole.

Ho escluso dalla cache i percorsi delle pagine legate al carrello e alla sezione admin e funziona tutto correttamente.

Il problema è che il counter dei prodotti inseriti nel carrello è presente in tutte le pagine e di conseguenza, quelle cachate non mostrano il numero di prodotti correttamente.

Qualcuno usa fastcgi o altri sistemi di cache e ha risolto questo problema?
     

  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       fastcgi_keep_conn on;
        fastcgi_read_timeout 45s; # wait for php to respond
        fastcgi_send_timeout 45s; # send to php waiting
        client_max_body_size 30M;

        fastcgi_intercept_errors on;
        fastcgi_buffer_size 256k;
        fastcgi_buffers 64 16k;
        fastcgi_busy_buffers_size 256k;

        fastcgi_cache cachename;
        fastcgi_cache_key $scheme$host$request_uri$request_method;
        #fastcgi_cache_key "$scheme$request_method$host$request_uri$cookie_state";  

        fastcgi_cache_valid 200 60m;
        fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
        #fastcgi_cache_use_stale updating;
        fastcgi_cache_bypass $http_pragma $no_cache $http_authorization;
        #fastcgi_cache_bypass $no_cache $http_authorization;
        fastcgi_no_cache $no_cache $http_authorization;

        fastcgi_cache_use_stale updating error timeout invalid_header http_500;
        # Temp file tweak
        # Temp file tweak
        fastcgi_max_temp_file_size 0;
        fastcgi_temp_file_write_size 256k;

 

Ciao, come hai risolto il problema con carrelli, utenti registrati, pannello di amministrazione?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...