M
M
Maxim Ivanushchik2013-11-13 14:57:17
Yii
Maxim Ivanushchik, 2013-11-13 14:57:17

Yii doesn't see changes in files?

I change the code in controllers and models, but Yii does not see them (changes). The code is executed as it was before the changes were made. I did not set any additional settings for caching - everything is by default.
This behavior is seen for the second time in a week. Moreover, if you do not touch anything and let some time pass (somewhere a couple of hours), Yii detects changes and works as it should.
The problem could be that, according to the official Ubuntu documentation , I set up lazy writing to files for the SSD?

vm.laptop_mode = 5
vm.dirty_writeback_centisecs = 6000

But, if you open the file with any editor, you can see that all changes are reflected in it. Maybe the apache-yii bundle somehow works with old file revisions?
UPD:
After restarting the computer, Yii saw all the changes. Most likely a problem with the local file system cache or something similar.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Syomov, 2013-11-13
@kotomyava

This may be due to setting apc.stat=0 or a similar setting in another opcode cache. The file system cache or ssd has nothing to do with it.

R
Rpsl, 2013-11-15
@Rpsl

Yes, it could be opcache or eaccelerator. Why use them together at all?

Show what is in php.ini about opcache and eaccelerator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question