I'm not sure, if this is a bug or a peculiarity with opcache, but it's definitely not a user question thus I am poating it in internals.
I came across a weird situation today that left me dumbfounded. I have the following symbolic link: index.php -> ../v1/idx.php The link index.php is in the directory /data/pr/test/, yet the file /data/pr/test/index.php was not in the list of cached files even though I certainly accessed the file and there's no blacklist and other files in that directory were in the list. This was the first strange thing, but I thought, hey, maybe only the real file (/data/pr/v1/idx.php) is cached. But here's the kicker: After I changed the sym link to point to another file index.php -> ../v2/index2.php I had to reset the opcache that the correct page was served. My revalidate_freq is set to 60 seconds. I also tested different browsers, deleted the cache in the browser, waited for more than 60 seconds, nothing helped. Only resetting the cache solved the issue (I actually restarted fpm). Please let me know, if I should open a bug or if opcache just doesn't work with symbolic links. Cheers, K. C. -- regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944 Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944 /* Thou shalt not follow the NULL pointer for chaos and madness await thee at its end. */
signature.asc
Description: OpenPGP digital signature