2017 © Pedro Peláez
 

package laravel-opcache-clear

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

image

maximkou/laravel-opcache-clear

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

  • Tuesday, January 9, 2018
  • by maximkou
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,886 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 30 % Grown

The README.md

Clear OPcache with ease

This Laravel 5 package allows you to clear OPcache, solving a common problem related to cache invalidation during atomic deployments (also called "zero downtime deploy")., (*1)

Getting Started

These instructions allows you to install the package into an existing Laravel app., (*2)

Prerequisities

Laravel 5 up&running installation., (*3)

Installation

You can install this package via Composer using:, (*4)

composer require maximkou/laravel-opcache-clear

You must also install this service provider., (*5)

// config/app.php
'providers' => [
    ...
    Maximkou\LaravelOpcacheClear\OpcacheClearServiceProvider::class,
    ...
];

Check that url and key options is right defined in your config/app.php, example:, (*6)

// config/app.php
'url' => env('APP_URL', 'http://my-app-url'),
'key' => env('APP_KEY'),

Usage

Once you have installed the package, you can run the following command (usually after deploy):, (*7)

php artisan opcache:clear

All done! Your OPcache is resetted!, (*8)

Customizations

Publish package config, if not published:, (*9)

php artisan vendor:publish --provider="Maximkou\LaravelOpcacheClear\OpcacheClearServiceProvider"

All settings is placed in config/laravel-opcache-clear.php, (*10)

  • Change uri of cleaner action by editing uri_slug option (by default is opcache-clear).
  • Change guzzle client options by editing guzzle_options options, to example, for disabling ssl verification:
'guzzle_options' => [
    'verify' => false,
]

The Versions

09/01 2018

dev-master

9999999-dev

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

  Sources   Download

MIT

The Requires

 

by Michele Giovanni Curletta
by Maksim Khodyrev

laravel cache php-fpm fpm opcache purge clear reset michelecurletta laravel-opcache-clear

09/01 2018

1.0.2

1.0.2.0

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

  Sources   Download

MIT

The Requires

 

by Michele Giovanni Curletta
by Maksim Khodyrev

laravel cache php-fpm fpm opcache purge clear reset michelecurletta laravel-opcache-clear

09/01 2018

1.0.1

1.0.1.0

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

  Sources   Download

MIT

The Requires

 

by Michele Giovanni Curletta
by Maksim Khodyrev

laravel cache php-fpm fpm opcache purge clear reset michelecurletta laravel-opcache-clear

09/01 2018

1.0.0

1.0.0.0

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

  Sources   Download

MIT

The Requires

 

by Michele Giovanni Curletta
by Maksim Khodyrev

laravel cache php-fpm fpm opcache purge clear reset michelecurletta laravel-opcache-clear