< 172023-06-18⋎19 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
16:01*adinfinitum[m] has quit (Remote host closed the connection)
16:27symbioquine[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:28symbioquine[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:43symbioquine[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:50wotnak[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:50symbioquine[m]ah, okay
16:51symbioquine[m]I'll try logging that from my .module file...
16:52wotnak[m]you can also go to /admin/reports/status/php on your farmos instance and search for 'opcache.enable'
16:53symbioquine[m]wotnak[m]: Looks like that was it...
16:53*uploaded an image: (51KiB) < libera.ems.host/_matrix/media/v3/downloa >
16:54symbioquine[m]I guess my *php.ini isn't getting applied.
16:54symbioquine[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:59mstenta[m]ah cool! TIL! I didn't know about the separate setting for opcache cli either!
17:23symbioquine[m]So the *php.ini files are getting loaded;
17:23*uploaded an image: (35KiB) < libera.ems.host/_matrix/media/v3/downloa >
17:23symbioquine[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:43symbioquine[m]Wow, okay I figured it out...
17:43symbioquine[m]Turns out that I just hadn't restarted the whole container.
17:44symbioquine[m]We can chalk this one up to user error 😅
17:46mstenta[m]Are you mounting them as individual files into the container?
17:46symbioquine[m]Which?
17:46symbioquine[m]My modules?
17:47mstenta[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:47mstenta[m]Until you restart the container
17:48mstenta[m](Depends on how the files are edited maybe. It happened to me with Ansible)
17:48symbioquine[m]I'm mounting a directory '../farmos_2x_custom_modules:/farmos_2x_custom_modules' which contains directories that are my actual modules...
17:48mstenta[m]Ok nevermind :-)
17:50mstenta[m]Oh I was wondering about your INI files
17:50mstenta[m]But maybe those arent being mounted
17:50symbioquine[m]symbioquine[m]: Then I'm doing;... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
17:51symbioquine[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:51mstenta[m]> The *php.ini files don't seem to be reloaded except when Apache restarts.
17:51mstenta[m]This is what I was responding to
17:51mstenta[m](On my phone so not as fast) :-)
17:51symbioquine[m]np
20:47*farmBOT has joined

< 172023-06-18⋏19 >