Problem
Today, all of a sudden, we found that certain things in our LAMP based web application are not displaying results. So, just to debug the issue, we modified some files and found that applying changes to certain files is not reflecting.

We have Amazon Server hosting for our project which runs on apache, mysql and PHP. We use xcache for caching.

Without going into much details into the application part, we have a cake PHP architecture and we store results of model functions in memcache keys. While debugging we observed that applying changes to one file (controller file which is a PHP file) reflects the changes, but applying changes to another PHP file (model file) are not reflecting. We just wanted to print some debug logs in the code inside the model file. We also tried increasing the memory_limit parameter in PHP ini file but no success.

Details

We found that writing some log in a log file right after the model function call in the controller file prints the empty array in the log file. Then we opened the model file and put a debug line in the model function which is called, but the logging is not happening. It is like no changes applied to that particular file are reflecting in runtime. But the changes are saving correctly in the model file.

We tried by restarting the apache service, memcache but still the issue is there. What should be the debug procedure from here? This same issue happened a few days back and we are not sure how it got fixed. That time, changes made to some other file were not reflecting.

Update
So, it seems a previously compiled version of this particular php file is cached somewhere. We don't have any web interface for xcache installed. How do I check whether that file is cached and if so how do I remove it from cache? Are there some commands that can be run to view cached files and remove them? I did not find any documentation yet.

link|improve this question

feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.