Louis
You shouldn't have to disable APC  for this purpose.   APC is supposed 
to recognize that the file has been changed and recompile the file any 
time it has been modified. I just verified it on build 106 and any 
change I make it to my PHP file does show up instantly . It does this by 
looking at the date/time stamp of the file. So, when you say - you 
remotely modified the file - I assume using CIFS - can you verify if the 
date/time stamp of this file did change every time after you edit the file ?

thanks
sriram

Louis Hoefler wrote:
> Hi everyone.
> I use opensolaris CE b106, and use CIFS with the apache2 server with php.
>
> I work on a windows machine and use the network sharing feature for editing 
> the php files remotely.
> Now here is my problem:
> I have a single php script lets call it sample.php:
> <?php
> print("test");
> print("test2");
> ?>
> This script simply shows the string "test" in my webbrowser.
> Now I edit the same file remotely and save it. Now the content is:
> <?php
> print("test2");
> ?>
>
> I should now see the string "test2" if I click on refresh within my browser, 
> but somehow the browser shows "test".
> I disabled all client side caching features, tested the output with 2 
> browsers but nothing changed.
> After I log in remotely with ssh and execute
>
> svcadm restart apache2
>
> the output changes from "test" to "test2".
> I thought thats becouse of some caching features turned on by default, and 
> disabled 4 caching modules
>
> #LoadModule file_cache_module libexec/mod_file_cache.so
> #LoadModule cache_module libexec/mod_cache.so
> #LoadModule disk_cache_module libexec/mod_disk_cache.so
> #LoadModule mem_cache_module libexec/mod_mem_cache.so
>
> then I restarted apache again. I made the same two steps in the other 
> direction, and I still need to do a
> svcadm restart apache2
> to refresh the php output.
>
> Are there any other caching modules enabled by default, I searched the config 
> files but did not found anything. How do I fix this problem?
>
> Thanks Louis Hoefler.
>   

Reply via email to