| 5 May 2024 |
@genghiz:talk.go7box.xyz | That would ensure that every package will have a different prefix | 08:01:45 |
Pol | We don't care about packages having different prefix... since they are all isolated from each other, there is NO risk of collision. | 08:02:21 |
@genghiz:talk.go7box.xyz | That's also true. | 08:02:35 |
Pol | That's a cool thing from Nix :) | 08:02:44 |
@genghiz:talk.go7box.xyz | Hah | 08:02:49 |
@genghiz:talk.go7box.xyz | True that | 08:02:51 |
Pol | (one of the true thing!) | 08:02:59 |
Pol | * (one of the cool thing!) | 08:03:03 |
@genghiz:talk.go7box.xyz | However, there is still a chance of misconfiguration, right? | 08:03:40 |
@genghiz:talk.go7box.xyz | Say I have 2 PHP services running and I mistakenly point caddy to the same php-fpm socket for both services. | 08:03:57 |
Pol | No | 08:04:07 |
Pol | There won't be any single issue | 08:04:13 |
@genghiz:talk.go7box.xyz | But then the APCu cache will be shared | 08:04:23 |
@genghiz:talk.go7box.xyz | Because the same pool is being used for both services | 08:04:33 |
Pol | Then this is something I'm not aware of. | 08:04:47 |
@genghiz:talk.go7box.xyz | (I'm not a PHP dev so I'm just speculating here) | 08:05:06 |
Pol | How is APCu working? | 08:05:21 |
@genghiz:talk.go7box.xyz | APCu is a key-value store | 08:05:52 |
@genghiz:talk.go7box.xyz | That's pretty much it | 08:06:03 |
Pol | I understand why having the packagename in it make sense. | 08:06:29 |
Pol | Maybe this is something to do indeed. | 08:06:41 |
Pol | I dont know how I'm going to do that yet in Nix. | 08:06:54 |
@genghiz:talk.go7box.xyz | Just get a base64 hash of the package name | 08:07:05 |
Pol | in the shell? | 08:07:34 |
@genghiz:talk.go7box.xyz | Yup | 08:07:37 |
Pol | I'll see how we can do that. | 08:07:52 |
@genghiz:talk.go7box.xyz | Or of the composer.lock | 08:08:00 |
@genghiz:talk.go7box.xyz | You can just run something like base64 composer.lock | head -c32 to get a prefix | 08:08:55 |
Pol | Wait | 08:10:11 |
Pol | I have something better. | 08:10:15 |