The site is running on Ubuntu 16 with Nginx web server. Recently I have uploaded the new code but when I load the website still it's showing the old pages, I have removed all the files from the document root and uploaded the sample PHP file its worked. So this time I took a pull directly from the Git but, the website is not loading with the new code.
I do not configure any cache headers / CDN for the site. In the doc root, I check the files its fresh code but the site is loading the old one. I have no idea from where it is loading.
curl -I output
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Thu, 10 Jan 2019 10:45:02 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Set-Cookie: PHPSESSID=1j921kls7adn7apspo0c8gdngt; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Nginx conf file
server {
listen 80;
root /var/www/site.in;
index index.php index.html index.htm index.nginx-debian.html;
server_name site.in www.site.in;
access_log /var/log/nginx/site_access.log;
error_log /var/log/nginx/site_error.log;
location / {
try_files $uri/ $uri /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
I never faced this type of issue. Please suggest me how to fix this issue.
service php7.1-fpm restart
but still the old site is showing up.nginx -T
?Opcode Caching Disabled
Optimization Disabled
SHM Cache Enabled
File Cache Disabled