ok.. looks like i almost done with cache
Little problem is that "Viewed" list is not working
There is a cookie that have a data about viewed items on site, it ok, cookie is updating while i using site, but when i go to site main page "Viewed" its not changing
But if i will click to "Viewed" list i will all of them
Hot to fix it ?
location ~ \.php$ {
root D:/Server/htdocs/;
fastcgi_pass 127.0.0.1:9123; # single backend process
#fastcgi_pass myLoadBalancer; # or multiple, see example above
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_index index.php;
add_header X-Cache $upstream_cache_status;
fastcgi_cache YOURAPP;
fastcgi_cache_bypass $fastcgi_skipcache;
fastcgi_no_cache $fastcgi_skipcache;
fastcgi_pass_header Cookie;
fastcgi_cache_key "$server_addr:$server_port$request_uri|$cookie_phpsessid";
set $fastcgi_skipcache 0;
if ($request_method = POST) {
set $fastcgi_skipcache 1;
}
if ($query_string != "")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(webasyst/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(cart/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(orders/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(profile/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(login/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(my/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(search/)")
{
set $fastcgi_skipcache 1;
}
Little problem is that "Viewed" list is not working
There is a cookie that have a data about viewed items on site, it ok, cookie is updating while i using site, but when i go to site main page "Viewed" its not changing
But if i will click to "Viewed" list i will all of them
Hot to fix it ?
location ~ \.php$ {
root D:/Server/htdocs/;
fastcgi_pass 127.0.0.1:9123; # single backend process
#fastcgi_pass myLoadBalancer; # or multiple, see example above
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_index index.php;
add_header X-Cache $upstream_cache_status;
fastcgi_cache YOURAPP;
fastcgi_cache_bypass $fastcgi_skipcache;
fastcgi_no_cache $fastcgi_skipcache;
fastcgi_pass_header Cookie;
fastcgi_cache_key "$server_addr:$server_port$request_uri|$cookie_phpsessid";
set $fastcgi_skipcache 0;
if ($request_method = POST) {
set $fastcgi_skipcache 1;
}
if ($query_string != "")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(webasyst/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(cart/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(orders/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(profile/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(login/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(my/)")
{
set $fastcgi_skipcache 1;
}
if ($request_uri ~* "/(search/)")
{
set $fastcgi_skipcache 1;
}