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:
parent
737fc995c0
commit
9b636a9687
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -4495,4 +4495,4 @@ class eHelper
|
||||
|
||||
return array(1 => $multi, 2 => $params, 3 => $parmstr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user