mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
No plugin manager caching in development environment
This commit is contained in:
@@ -22,7 +22,7 @@ e107::coreLan('plugin', true);
|
|||||||
$e_sub_cat = 'plug_manage';
|
$e_sub_cat = 'plug_manage';
|
||||||
|
|
||||||
define('PLUGIN_SHOW_REFRESH', FALSE);
|
define('PLUGIN_SHOW_REFRESH', FALSE);
|
||||||
define('PLUGIN_SCAN_INTERVAL', 360);
|
define('PLUGIN_SCAN_INTERVAL', $_SERVER['E_DEV'] ? 0 : 360);
|
||||||
|
|
||||||
global $user_pref;
|
global $user_pref;
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ function e_help()
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'caption' => "Scan for Changes",
|
'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>"
|
<p><a class='btn btn-mini btn-primary' href='".e_SELF."?refresh'>Refresh</a></p>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -945,6 +945,12 @@ class pluginManager{
|
|||||||
{
|
{
|
||||||
global $plugin;
|
global $plugin;
|
||||||
|
|
||||||
|
if(!PLUGIN_SCAN_INTERVAL)
|
||||||
|
{
|
||||||
|
$plugin->update_plugins_table('update');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if((time() > vartrue($_SESSION['nextPluginFolderScan'],0)) || $force == true)
|
if((time() > vartrue($_SESSION['nextPluginFolderScan'],0)) || $force == true)
|
||||||
{
|
{
|
||||||
$plugin->update_plugins_table('update');
|
$plugin->update_plugins_table('update');
|
||||||
|
Reference in New Issue
Block a user