CodeIgniter Forums
nginx - takes a few seconds for changes to appear? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: nginx - takes a few seconds for changes to appear? (/showthread.php?tid=47039)



nginx - takes a few seconds for changes to appear? - El Forum - 11-23-2011

[eluser]ripken204[/eluser]
this is really weird..
I set up nginx on ubuntu 10.04, on a local dev server

I am using this nginx config (minus the part about caching):
http://ericlbarnes.com/post/12197460552/codeigniter-nginx-virtual-host

Whenever I make a change to a file in CI, it is taking at least a couple of seconds for that change to appear on the site. Sometimes it's instant(which it should always be) and other times it takes 20+ seconds of me hitting refresh.

I've even tested without my theme by doing something like this:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {

public function index()
{
  $header['page_title'] = 'Home';
  
  $this->load->view('header', $header);
  $this->load->view('main');
  $this->load->view('footer');
}

function contact()
{
  echo "1233 1234567890 ";
}

}

I am testing the contact function which simply prints out numbers on the page. This is having problems as well when I change what echos out.

Then if I make a test.php file in my public_html directory and make changes to that, it works instantly. So there is definitely something on the CI side that is going wrong and I can't figure it out.

I have $config['uri_protocol'] = 'REQUEST_URI';

Any ideas?