OpCacheController
extends Controller
in package
Attributes
- #[Middleware]
- ['auth:sanctum', 'ability:' . \App\Models\TokenAbility::ACCESS_API->value, 'force.json']
- #[Prefix]
- 'opcache'
Table of Contents
Properties
Methods
- __construct() : mixed
- clearCache() : mixed
- Clear
- compileCache() : mixed
- Compile cache
- getConfig() : mixed
- Get config
- getStatus() : mixed
- Get status
- denyWithStatus() : mixed
- gateCheckExecuteJob() : mixed
- gateCheckViewDashboard() : mixed
- noContent() : mixed
Properties
$opCacheService read-only
private
OpCacheService
$opCacheService
Methods
__construct()
public
__construct(OpCacheService $opCacheService) : mixed
Parameters
- $opCacheService : OpCacheService
clearCache()
Clear
public
clearCache() : mixed
Tags
Attributes
- #[Post]
- '/clear'
- 'api.opcache.clear'
compileCache()
Compile cache
public
compileCache(Request $request) : mixed
Parameters
- $request : Request
Tags
Attributes
- #[Post]
- '/compile'
- 'api.opcache.compile'
getConfig()
Get config
public
getConfig() : mixed
Tags
Attributes
- #[Get]
- '/config'
- 'api.opcache.getConfig'
getStatus()
Get status
public
getStatus() : mixed
Tags
Attributes
- #[Get]
- '/status'
denyWithStatus()
protected
denyWithStatus(string $message, int $status) : mixed
Parameters
- $message : string
- $status : int
gateCheckExecuteJob()
protected
gateCheckExecuteJob() : mixed
gateCheckViewDashboard()
protected
gateCheckViewDashboard() : mixed
noContent()
protected
noContent() : mixed