1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +02:00

No plugin manager caching in development environment

This commit is contained in:
SecretR 2014-03-12 16:06:29 +02:00
parent 737fc995c0
commit 9b636a9687
2 changed files with 10 additions and 4 deletions

View File

@ -22,7 +22,7 @@ e107::coreLan('plugin', true);
$e_sub_cat = 'plug_manage';
define('PLUGIN_SHOW_REFRESH', FALSE);
define('PLUGIN_SCAN_INTERVAL', 360);
define('PLUGIN_SCAN_INTERVAL', $_SERVER['E_DEV'] ? 0 : 360);
global $user_pref;
@ -167,7 +167,7 @@ function e_help()
{
return array(
'caption' => "Scan for Changes",
'text' => "Plugin folders are scanned every ".(PLUGIN_SCAN_INTERVAL / 60) ." minutes for changes. Click the button below to scan now.
'text' => "Plugin folders are scanned every ".(PLUGIN_SCAN_INTERVAL ? PLUGIN_SCAN_INTERVAL / 60 : 0) ." minutes for changes. Click the button below to scan now.
<p><a class='btn btn-mini btn-primary' href='".e_SELF."?refresh'>Refresh</a></p>"
);
}
@ -944,6 +944,12 @@ class pluginManager{
function pluginCheck($force=false)
{
global $plugin;
if(!PLUGIN_SCAN_INTERVAL)
{
$plugin->update_plugins_table('update');
return;
}
if((time() > vartrue($_SESSION['nextPluginFolderScan'],0)) || $force == true)
{
@ -2835,4 +2841,4 @@ exit;
}
}
?>
?>

View File

@ -4495,4 +4495,4 @@ class eHelper
return array(1 => $multi, 2 => $params, 3 => $parmstr);
}
}
}