| 16:01 | * | adinfinitum[m] has quit (Remote host closed the connection) |
| 16:27 | symbioquine[m] | I'm running into some weird caching behavior where hooks in my `.module` file use old versions for some time after I update the code - even after a cache clear (`drush cr`)...... (full message at <libera.ems.host/_matrix/media/v3/downloa>) |
| 16:28 | symbioquine[m] | It's not caching at the http/reverse-proxy level because my logging in php is running each time. (Just the old version) |
| 16:43 | symbioquine[m] | It's not a caching/propagation issue at the Docker/filesystem layer because I can see the changes right away with docker-compose exec www2 cat. |
| 16:50 | wotnak[m] | opcache has separate enable_cli configuration option for enabling/disabling it on cli, so checking if it is enabled by executing php code from cli can have different results than what is actually used for drupal |
| 16:50 | symbioquine[m] | ah, okay |
| 16:51 | symbioquine[m] | I'll try logging that from my .module file... |
| 16:52 | wotnak[m] | you can also go to /admin/reports/status/php on your farmos instance and search for 'opcache.enable' |
| 16:53 | symbioquine[m] | wotnak[m]: Looks like that was it... |
| 16:53 | * | uploaded an image: (51KiB) < libera.ems.host/_matrix/media/v3/downloa > |
| 16:54 | symbioquine[m] | I guess my *php.ini isn't getting applied. |
| 16:54 | symbioquine[m] | I have a file called php-custom.ini which I'm putting at /usr/local/etc/php/conf.d/php-custom.ini via a docker mount... |
| 16:58 | * | sent a shell code block: libera.ems.host/_matrix/media/v3/downloa |
| 16:59 | mstenta[m] | ah cool! TIL! I didn't know about the separate setting for opcache cli either! |
| 17:23 | symbioquine[m] | So the *php.ini files are getting loaded; |
| 17:23 | * | uploaded an image: (35KiB) < libera.ems.host/_matrix/media/v3/downloa > |
| 17:23 | symbioquine[m] | But not applied... |
| 17:23 | * | uploaded an image: (3KiB) < libera.ems.host/_matrix/media/v3/downloa > |
| 17:24 | * | uploaded an image: (4KiB) < libera.ems.host/_matrix/media/v3/downloa > |
| 17:24 | * | sent a shell code block: libera.ems.host/_matrix/media/v3/downloa |
| 17:43 | symbioquine[m] | Wow, okay I figured it out... |
| 17:43 | symbioquine[m] | Turns out that I just hadn't restarted the whole container. |
| 17:44 | symbioquine[m] | We can chalk this one up to user error 😅 |
| 17:46 | mstenta[m] | Are you mounting them as individual files into the container? |
| 17:46 | symbioquine[m] | Which? |
| 17:46 | symbioquine[m] | My modules? |
| 17:47 | mstenta[m] | I learned recently that when you mount individual files (instead of directories) then changing the files outside of the container *sometimes* changes the inode of the file itself, which means that the file inside the container is the old one |
| 17:47 | mstenta[m] | Until you restart the container |
| 17:48 | mstenta[m] | (Depends on how the files are edited maybe. It happened to me with Ansible) |
| 17:48 | symbioquine[m] | I'm mounting a directory '../farmos_2x_custom_modules:/farmos_2x_custom_modules' which contains directories that are my actual modules... |
| 17:48 | mstenta[m] | Ok nevermind :-) |
| 17:50 | mstenta[m] | Oh I was wondering about your INI files |
| 17:50 | mstenta[m] | But maybe those arent being mounted |
| 17:50 | symbioquine[m] | symbioquine[m]: Then I'm doing;... (full message at <libera.ems.host/_matrix/media/v3/downloa>) |
| 17:51 | symbioquine[m] | mstenta[m]: Oh, yeah that could be an issue also. But in this case I'm pretty sure the main issue was that they (the `.ini` files) don't seem to be reloaded without an Apache (in this case the whole container) restart. |
| 17:51 | mstenta[m] | > The *php.ini files don't seem to be reloaded except when Apache restarts. |
| 17:51 | mstenta[m] | This is what I was responding to |
| 17:51 | mstenta[m] | (On my phone so not as fast) :-) |
| 17:51 | symbioquine[m] | np |
| 20:47 | * | farmBOT has joined |