mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
clear cache on post-commit update
This commit is contained in:
parent
49d0809af5
commit
f89b15a60e
2 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
class Controller
|
||||
{
|
||||
const CACHE_CLEAR_PATH = '/clear-cache';
|
||||
|
||||
protected static $queuedFunctions = [];
|
||||
|
||||
public static function dispatch($uri)
|
||||
|
@ -97,7 +99,7 @@ class Controller
|
|||
|
||||
$router->post('/postcommit', 'OpsActions::executePostCommit');
|
||||
$router->post('/log-upload', 'OpsActions::executeLogUpload');
|
||||
$router->get('/clear-cache', 'OpsActions::executeClearCache');
|
||||
$router->get(static::CACHE_CLEAR_PATH, 'OpsActions::executeClearCache');
|
||||
|
||||
$router->any('/list/subscribe', 'MailActions::executeSubscribe');
|
||||
$router->any('/list/subscribed', 'MailActions::executeSubscribed');
|
||||
|
|
|
@ -21,3 +21,6 @@ Shell::exec('git fetch && git reset --hard origin/master');
|
|||
|
||||
View::compileCss();
|
||||
View::gzipAssets();
|
||||
|
||||
// clear cache
|
||||
Curl::get('localhost'.Controller::CACHE_CLEAR_PATH);
|
Loading…
Add table
Reference in a new issue