Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1182251
D154.id369.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
Thu, Oct 16, 2:26 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Fri, Oct 17, 2:26 AM (8 h, 8 m)
Engine
blob
Format
Raw Data
Handle
767703
Attached To
D154: INP-1503 - Search for new units during install/upgrade
D154.id369.diff
View Options
Index: core/kernel/utility/unit_config_reader.php
===================================================================
--- core/kernel/utility/unit_config_reader.php
+++ 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