Refactor caching of public root path in SUI core
This commit is contained in:
parent
b82f6f6029
commit
e510cb2649
1 changed files with 4 additions and 4 deletions
|
|
@ -74,10 +74,10 @@ func (sui *DSL) PublicRootWithSid(sid string) (string, error) {
|
||||||
|
|
||||||
// PublicRoot returns the public root path
|
// PublicRoot returns the public root path
|
||||||
func (sui *DSL) PublicRoot(data map[string]interface{}) (string, error) {
|
func (sui *DSL) PublicRoot(data map[string]interface{}) (string, error) {
|
||||||
// Cache the public root
|
// Cache the public root (Close the cache)
|
||||||
if sui.publicRoot != "" {
|
// if sui.publicRoot != "" {
|
||||||
return sui.publicRoot, nil
|
// return sui.publicRoot, nil
|
||||||
}
|
// }
|
||||||
|
|
||||||
if data == nil {
|
if data == nil {
|
||||||
data = map[string]interface{}{}
|
data = map[string]interface{}{}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue