Email or username:

Password:

Forgot your password?
Top-level
dansup

We also use caching A LOT!

There is a framework level config cache for all the files in `config/*.php` but editing the `.env` file requires restarting php/nginx due to opcache

So I made a redis/db config cache that allows you to edit settings in the admin dashboard, with immediate effect

We cache post objects by ids in our own schema and transform them to Masto or Pixelfed format depending on the request, allowing both MastoAPI support and our many innovative features

Will blog about this ๐Ÿ˜Ž

2 comments
Sven

@dansup FYI itโ€™s good practice to load the values from the `.env` file into the OS-level environment variables instead of reading from the file every time.

gist.github.com/mihow/9c7f5598

dansup

@svenluijten The laravel framework we use does that, .env values are referenced in the `config/*.php` files which are basically KV arrays that are compiled and cached.

The opcache php extension requires one to restart php-fpm after editing the .env because it's cached so hard

Go Up