ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.vci.server.cache;
 
import com.vci.common.resource.CommonProperties;
 
public class CacheConfUtil {
 
    private static String _refreshEveryTime = "";
    private static boolean _refresh = false;
    
    /**
     * 判断在每一次数据读取时,是否需要读取变化的内容
     * @return
     */
    public static boolean getEveryTimeRefresh() {
        if (_refreshEveryTime == null || _refreshEveryTime.length() == 0) {
            _refreshEveryTime = CommonProperties.getStringProperty("UI.cache.refreshEveryTime");
            if (_refreshEveryTime != null && _refreshEveryTime.equalsIgnoreCase("true")) {
                _refresh = true;
            } else {
                _refresh = false;
            }
        }
        
        return _refresh;
    }
}