Ticket #3289 (closed defect: fixed)
[PATCH] cache.wmsplugin.expire and cache.wmsplugin.maxsize are not honored?
| Reported by: | alexm | Owned by: | xeen |
|---|---|---|---|
| Priority: | normal | Component: | Plugin wms |
| Version: | Keywords: | ||
| Cc: |
Description
It looks to me, that the settings are not in effect.
After commenting to lines out, it seems to work as expected:
WMSPlugin.java
public WMSPlugin() {
refreshMenu();
cache.setExpire(cache.EXPIRE_MONTHLY, false); cache.setMaxSize(70, false);
}
Attachments
Change History
comment:2 Changed 2 years ago by xeen
- Summary changed from cache.wmsplugin.expire and cache.wmsplugin.maxsize are not honored? to [PATCH] cache.wmsplugin.expire and cache.wmsplugin.maxsize are not honored?
The patch looks huge but it's mainly cosmetic due to slightly incorrect indentation when I originally created the file. Only real change is actually in setExpire and setMaxSize which will not overwrite the in-memory value if it already exists unless it's forced. (Previously it would overwrite the values from the prefs).


