if (getExpireCache(0) == GWCVars.CACHE_USE_WMS_BACKEND_VALUE) { if (backendExpire == -1) { this.expireCacheList.set(0, new ExpirationRule(0, 7200)); log.error( "Layer profile wants MaxAge from backend," + " but backend does not provide this. Setting to 7200 seconds."); } else { this.expireCacheList.set(backendExpire, new ExpirationRule(0, 7200)); this.expireClientsList.set(0, new ExpirationRule(0, 7200)); log.error( "Layer profile wants MaxAge from backend," + " but backend does not provide this. Setting to 7200 seconds."); } else { this.expireClientsList.set(0, new ExpirationRule(0, backendExpire)); log.trace("Setting expireClients to: " + expireClients);
if (getExpireCache(0) == GWCVars.CACHE_USE_WMS_BACKEND_VALUE) { if (backendExpire == -1) { this.expireCacheList.set(0, new ExpirationRule(0, 7200)); log.error( "Layer profile wants MaxAge from backend," + " but backend does not provide this. Setting to 7200 seconds."); } else { this.expireCacheList.set(backendExpire, new ExpirationRule(0, 7200)); this.expireClientsList.set(0, new ExpirationRule(0, 7200)); log.error( "Layer profile wants MaxAge from backend," + " but backend does not provide this. Setting to 7200 seconds."); } else { this.expireClientsList.set(0, new ExpirationRule(0, backendExpire)); log.trace("Setting expireClients to: " + expireClients);
expireCacheList.add(new ExpirationRule(0, GWCVars.CACHE_NEVER_EXPIRE)); } else { int expireCacheInt = Integer.parseInt(expireCache); saveExpirationHeaders = true; expireCacheList.add(new ExpirationRule(0, expireCacheInt)); expireClientsList.add(new ExpirationRule(0, 7200)); } else { int expireClientsInt = Integer.parseInt(expireClients); expireClientsList.add(new ExpirationRule(0, expireClientsInt));