CLI command

The command is based on a Symfony command and is only accessible via CLI (not via scheduler)

Command

vendor/bin/typo3 myracloud:clear
Copied!

Usage

myracloud:clear [options]
myracloud:clear -t page -i [PAGE_UID like: 123]
myracloud:clear -t resource -i [PATH like: /fileadmin/path/To/Directory]
myracloud:clear -t resource -i [PATH like: /assets/myCustomAssets/myScript.js]
myracloud:clear -t resource -i [PATH like: /fileadmin/path/ToFile.jpg]
myracloud:clear -t all
myracloud:clear -t allresources
Copied!

Type Parameter

-t, --type=TYPE

  • page
  • resource
  • all
  • allresources

--type=page

page type requires a page identifier (pid) -i 1. the pid must be numeric.

--type=resource

resource type requires a combined identifier -i 1:/path/to/something.

--type=allresources

allresources type requires NO extra option.

This will clear everything from these folders :

  • /fileadmin/*
  • /typo3/*
  • /typo3temp/*
  • /typo3conf/*

--type=all

all type requires no extra option.

This clears everything in Myra Cache for this TYPO3 Instance.