You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Decebal Suiu <de...@asf.ro> on 2012/04/20 21:30:37 UTC
Clear markup cache
Hi
I use a CustomResourceLocator (extends ResourceStreamLocator) to load markup
files. The workflow is to search in a custom folder and if the file doesn't
exists call super.locate
If I add/remove some markup files in/from custom folder I see that wicket
keeps in cache some old files and I want to invalidate that cache
programmatic (all cache or only for that files). How can I do this?
wicket 1.5.5
Thanks,
Decebal
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Clear-markup-cache-tp4575033p4575033.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clear markup cache
Posted by Decebal Suiu <de...@asf.ro>.
Another question: I know what markup files are changed do you think that it's
a good idea to use MarkupCache.removeMarkup(String key) to improve the
performance?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Clear-markup-cache-tp4575033p4576743.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Clear markup cache
Posted by Decebal Suiu <de...@asf.ro>.
I resolved with:
// clear markup cache
getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear();
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Clear-markup-cache-tp4575033p4575132.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org