TYPO3 / Surf

Easy and powerful PHP deployment tool
https://docs.typo3.org/other/typo3/surf/master/en-us/
GNU General Public License v3.0
98 stars 53 forks source link

Cachetool tasks #221

Open t3easy opened 6 years ago

t3easy commented 6 years ago

Expected Behavior

Predefined task to flush apc/opcache with https://github.com/gordalina/cachetool

Actual Behavior

Not available

simonschaufi commented 4 years ago

Maybe this is the solution to my long term problem:

Server (TYPO3 CMS) TYPO3\Surf\Task\Php\WebOpcacheResetExecuteTask
Executing PHP opcache reset script at "https://example.com/surf-opcache-reset-xxx.php" did not return expected result

I get this error during almost every deployment process on a website behind a proxy server and My customer is so annoyed of this problem as right after the deployment is finished, the server responds with internal server error. One minute later everything is fine.

The typo3temp problem described here https://github.com/TYPO3/Surf/issues/295 also occurs very often but is really hard to reproduce.

jonaseberle commented 3 years ago

For me it solved the problem you describe @simonschaufi .

When using cachetool via HTTP like here https://gist.github.com/jonaseberle/9bfc29b3af726c41b3cd9cec088fc722 the only difference to WebOpcacheResetExecuteTask seems to be that the latter

while the first (when configured as remote task) does

-> This seems to help. I guess in our case it was about storage systems vs. webservers noticing the symlink switch. That problem does not seem to occur if the file is created after the symlink is switched.

Using --fcgi with cachetool is prefered, of course where possible.

sabbelasichon commented 1 year ago

https://deployer.org/docs/7.x/contrib/cachetool