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 void
invalidateCacheOnContentCommented(Page page, Content content)
Invalidate cache on a content commentedvoid
invalidateCacheOnContentDeletion(Site site, String contentId)
Invalidate cache on a content deletedvoid
invalidateCacheOnContentModification(Site site, Content content)
Invalidate cache on a content modficationvoid
invalidateCacheOnContentReactionChanged(Page page, Content content)
Invalidate cache when a content reaction changedvoid
invalidateCacheOnPageDeletion(Site site, PagesContainer parent, String pageId, String pathInSitemap)
Invalidate cache on a page deletionvoid
invalidateCacheOnPageMinorChange(Page page)
Invalidate cache on a minor page change.void
invalidateCacheOnPageModification(Page page)
Invalidate cache when a page is modified.void
invalidateCacheOnPageMove(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
-
-