Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1102942
D154.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Aug 19, 12:42 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Wed, Aug 20, 12:42 PM (7 h, 7 m)
Engine
blob
Format
Raw Data
Handle
714318
Attached To
D154: INP-1503 - Search for new units during install/upgrade
D154.diff
View Options
Index: branches/5.2.x/core/kernel/utility/unit_config_reader.php
===================================================================
--- branches/5.2.x/core/kernel/utility/unit_config_reader.php
+++ branches/5.2.x/core/kernel/utility/unit_config_reader.php
@@ -185,13 +185,23 @@
function includeConfigFiles($folderPath, $cache = true)
{
+ $data = false;
$this->Application->refreshModuleInfo();
- if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) {
- $data = $this->Application->getCache('master:config_files', false, $cache ? CacheSettings::$unitCacheRebuildTime : 0);
- }
- else {
- $data = $this->Application->getDBCache('config_files', $cache ? CacheSettings::$unitCacheRebuildTime : 0);
+ if ( $cache ) {
+ if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) {
+ $data = $this->Application->getCache(
+ 'master:config_files',
+ false,
+ CacheSettings::$unitCacheRebuildTime
+ );
+ }
+ else {
+ $data = $this->Application->getDBCache(
+ 'config_files',
+ CacheSettings::$unitCacheRebuildTime
+ );
+ }
}
if ( $data ) {
Event Timeline
Log In to Comment