Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Localhost apache takes +20sec to load changes on php file- M |
|
Author |
|
injurer001
Joined: 24 Oct 2013 Posts: 2 Location: canada
|
Posted: Thu 24 Oct '13 23:56 Post subject: Localhost apache takes +20sec to load changes on php file- M |
|
|
Hi guys,
First time posting here, probably won't be the last because I've started to build some websites again.
You will find below what software I run on.
I work on php pages locally and when I save the file and reload the page, the changes made aren't shown in the browser. I need to wait 20sec and reload it again for it to finally show the changes. I've never worked on a mac as I was a Win user when I was previously using apache.
I tested with safari and chrome and the delay seems to be roughly the same.
Thanks a lot for your help.
Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/0.9.8x DAV/2 PHP/5.5.3
Intel Mac OS X 10_7_5 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 25 Oct '13 10:43 Post subject: |
|
|
it smells like cache from PHP and or apache. |
|
Back to top |
|
injurer001
Joined: 24 Oct 2013 Posts: 2 Location: canada
|
Posted: Fri 25 Oct '13 15:36 Post subject: |
|
|
James Blond wrote: | it smells like cache from PHP and or apache. |
That is what I thought as well. I'm not sure how to change the apache .conf to solve my problem.
I might be wrong but I think the php-file session dont expire fast enough.
Thanks for your help. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 28 Oct '13 11:25 Post subject: |
|
|
PHP session is to store data in it from your code using $_SESSION. That is not caching unless your codes uses it that way. by default apache does not cache anything. You might disable the caching (opcache) in PHP. |
|
Back to top |
|
|
|
|
|
|