History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-215
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Lars Torunski
Reporter: Raoul Zon
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OSCache

Setting CacheFilter parameters runtime

Created: 11/Nov/05 09:54 AM   Updated: 01/May/07 11:01 AM
Component/s: Filters
Affects Version/s: 2.2 final
Fix Version/s: 2.4

Issue Links:
Related
 
This issue is related to:
CACHE-99 Use lazy initialization in cache filt... Critical Closed


 Description  « Hide
It would be a nice feature to be able to set/override the CacheFilter initialization parameters runtime, in a jsp or something.
I think a simple setter in the CacheFilter would be sufficient to do so.

 All   Comments   Change History      Sort Order:
Raoul Zon - [14/Jun/06 05:02 PM ]
Has anyone have chance to look at this issue, or has it been downgraded on priority?

Lars Torunski - [15/Jun/06 05:11 AM ]
Our focus is on bug fixing the current release and on releasing the version 3.0.

Danny - [13/Oct/06 01:52 PM ]
I was about to post the same ticket when I saw this post.

It's not a big deal to me if the jsp/runtime application is provided to tune these settings, but what we really need is the ability to dynamically change the values. In line with what I believe the original poster had in mind, this would entail nothing more than providing getters/settings for the servlet filter parameters. This would also allow inversion of control containers to set the values dynamically. I'll gladly submit such a patch if the OSCache developers are focusing on 3.0 instead for now.

Lars Torunski - [13/Oct/06 02:00 PM ]
Danny, of course you can provide a patch based on the current revision of the CacheFitler: http://svn.opensymphony.com/svn/oscache/trunk/src/java/com/opensymphony/oscache/web/filter/CacheFilter.java

Lars Torunski - [26/Feb/07 02:19 PM ]
Do you want to set all upcoming CacheFilter configuration parameter?

time
scope
cron
fragment
nocache
lastModified
max-age
expires
ICacheKeyProvider
ICacheGroupsProvider
EntryRefreshPolicy
oscache-properties-file

Raoul Zon - [27/Feb/07 03:03 AM ]
Having all parameters available runtime would be a great addition.

Danny - [27/Feb/07 10:05 AM ]
Yes, basically, anything that could safely be modified once OSCache is running would be a tremendous asset. For example, any of the time-specific options should be tune-able via some sort of GUI, like: lastModified, max-age, expires, etc. I could see how changing the KeyProvider could be a problem once the cache has been populated, but for the most part, it seems like many of these could safely be modifiable while OSCache is running.

Lars Torunski - [04/Mar/07 12:10 PM ]
getter/setter for 'oscache-properties-file' is still open.
TO DO: Document spring integration.