mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47: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
|
class Controller
|
||||||
{
|
{
|
||||||
|
const CACHE_CLEAR_PATH = '/clear-cache';
|
||||||
|
|
||||||
protected static $queuedFunctions = [];
|
protected static $queuedFunctions = [];
|
||||||
|
|
||||||
public static function dispatch($uri)
|
public static function dispatch($uri)
|
||||||
|
@ -97,7 +99,7 @@ class Controller
|
||||||
|
|
||||||
$router->post('/postcommit', 'OpsActions::executePostCommit');
|
$router->post('/postcommit', 'OpsActions::executePostCommit');
|
||||||
$router->post('/log-upload', 'OpsActions::executeLogUpload');
|
$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/subscribe', 'MailActions::executeSubscribe');
|
||||||
$router->any('/list/subscribed', 'MailActions::executeSubscribed');
|
$router->any('/list/subscribed', 'MailActions::executeSubscribed');
|
||||||
|
|
|
@ -21,3 +21,6 @@ Shell::exec('git fetch && git reset --hard origin/master');
|
||||||
|
|
||||||
View::compileCss();
|
View::compileCss();
|
||||||
View::gzipAssets();
|
View::gzipAssets();
|
||||||
|
|
||||||
|
// clear cache
|
||||||
|
Curl::get('localhost'.Controller::CACHE_CLEAR_PATH);
|
Loading…
Add table
Reference in a new issue