1- Locate nginx.conf on your server, which almost on this path
/etc/nginx/nginx.conf
2- Add this code under the http block
fastcgi_buffering off;
Refrence: microsoft/WSL#2100 (comment)
| <?php | |
| namespace App\Providers; | |
| use App\Encrypter; | |
| use Illuminate\Support\Str; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { |
1- Locate nginx.conf on your server, which almost on this path
/etc/nginx/nginx.conf
2- Add this code under the http block
fastcgi_buffering off;
Refrence: microsoft/WSL#2100 (comment)
| name: Tests (PHP) | |
| on: [push] | |
| jobs: | |
| tests: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 |
| /vendor | |
| /docker | |
| /Dockerfile |
An interesting read from Post meta vs separate database tables
If your plugin is going to have A LOT of data, then using the wp_postmeta is NOT a good idea as demonstrated below:
Taking Woocommerce as an example,
In a store with ~30,000 products, say there will be an average of ~40 post meta (attributes and everything) per product, 5 product images per product, which means there will be ~4 image meta for each image:
| <?php | |
| namespace App\Providers; | |
| use App\Notifications\DatabaseChannel as CustomDatabaseChannel; | |
| use Illuminate\Notifications\Channels\DatabaseChannel; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { |
v4l2loopback) - Source: https://github.com/umlaeute/v4l2loopback (You might find builds in your distro's repos - I'm using Fedora so had to build it myself using https://github.com/danielkza/v4l2loopback-fedora/)It's been a little while since I set it all up so I can't remember all of the installation details, which will probably be different for your distro anyway unless you're using Fedora. Apologies if I have forgotten something as wel.
| <?php | |
| namespace App\Observers; | |
| use Illuminate\Database\Eloquent\Model; | |
| class RedirectObserver | |
| { | |
| const REDIRECTS = [ | |
| \Modules\Shop\Entities\Product::class => [ |