Package org.ametys.web.cache
Interface CacheInvalidationPolicy
-
- All Known Implementing Classes:
DefaultCacheInvalidationPolicy
public interface CacheInvalidationPolicy
Component responsible for policy of cache invalidation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinvalidateCacheOnContentCommented(Page page, Content content)Invalidate cache on a content commentedvoidinvalidateCacheOnContentDeletion(Site site, String contentId)Invalidate cache on a content deletedvoidinvalidateCacheOnContentModification(Site site, Content content)Invalidate cache on a content modficationvoidinvalidateCacheOnContentReactionChanged(Page page, Content content)Invalidate cache when a content reaction changedvoidinvalidateCacheOnPageDeletion(Site site, PagesContainer parent, String pageId, String pathInSitemap)Invalidate cache on a page deletionvoidinvalidateCacheOnPageMinorChange(Page page)Invalidate cache on a minor page change.voidinvalidateCacheOnPageModification(Page page)Invalidate cache when a page is modified.voidinvalidateCacheOnPageMove(Page page, PagesContainer oldParent, String oldPathInSitemap)Invalidate cache on a page move
-
-
-
Method Detail
-
invalidateCacheOnPageModification
void invalidateCacheOnPageModification(Page page) throws Exception
Invalidate cache when a page is modified. The page modification can have triggered the modification of other pages (ex: page addition, content zone item deletion).- Parameters:
page- the modified page- Throws:
Exception- if an error occurs
-
invalidateCacheOnPageMinorChange
void invalidateCacheOnPageMinorChange(Page page) throws Exception
Invalidate cache on a minor page change. The change cannot have triggered the modification of other pages (ex: service modification).- Parameters:
page- the modified page- Throws:
Exception- if an error occurs
-
invalidateCacheOnPageDeletion
void invalidateCacheOnPageDeletion(Site site, PagesContainer parent, String pageId, String pathInSitemap) throws Exception
Invalidate cache on a page deletion- Parameters:
site- the siteparent- the parent page or sitemappageId- the page idpathInSitemap- path of the page in sitemap- Throws:
Exception- if an error occurs
-
invalidateCacheOnPageMove
void invalidateCacheOnPageMove(Page page, PagesContainer oldParent, String oldPathInSitemap) throws Exception
Invalidate cache on a page move- Parameters:
page- the page movedoldParent- the old parentoldPathInSitemap- the old path in sitemap- Throws:
Exception- if an error occurs
-
invalidateCacheOnContentCommented
void invalidateCacheOnContentCommented(Page page, Content content) throws Exception
Invalidate cache on a content commented- Parameters:
page- the pagecontent- the commented content- Throws:
Exception- if an error occurs
-
invalidateCacheOnContentReactionChanged
void invalidateCacheOnContentReactionChanged(Page page, Content content) throws Exception
Invalidate cache when a content reaction changed- Parameters:
page- the pagecontent- the commented content- Throws:
Exception- if an error occurs
-
invalidateCacheOnContentDeletion
void invalidateCacheOnContentDeletion(Site site, String contentId) throws Exception
Invalidate cache on a content deleted- Parameters:
site- the sitecontentId- the content id- Throws:
Exception- if an error occurs
-
invalidateCacheOnContentModification
void invalidateCacheOnContentModification(Site site, Content content) throws Exception
Invalidate cache on a content modfication- Parameters:
site- the sitecontent- the content- Throws:
Exception- if an error occurs
-
-