Package org.ametys.web.cache
Interface CacheInvalidationPolicy
- All Known Implementing Classes:
DefaultCacheInvalidationPolicy
public interface CacheInvalidationPolicy
Component responsible for policy of cache invalidation
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidinvalidateCacheOnContentCommented(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, SitemapElement parent, String pageId, String pathInSitemap) Invalidate cache on a page deletionvoidInvalidate cache on a minor page change.voidInvalidate cache when a page is modified.voidinvalidateCacheOnPageMove(Page page, SitemapElement oldParent, String oldPathInSitemap) Invalidate cache on a page move
-
Field Details
-
ROLE
Avalon Role
-
-
Method Details
-
invalidateCacheOnPageModification
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
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, SitemapElement 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, SitemapElement 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
Invalidate cache on a content commented- Parameters:
page- the pagecontent- the commented content- Throws:
Exception- if an error occurs
-
invalidateCacheOnContentReactionChanged
Invalidate cache when a content reaction changed- Parameters:
page- the pagecontent- the commented content- Throws:
Exception- if an error occurs
-
invalidateCacheOnContentDeletion
Invalidate cache on a content deleted- Parameters:
site- the sitecontentId- the content id- Throws:
Exception- if an error occurs
-
invalidateCacheOnContentModification
Invalidate cache on a content modfication- Parameters:
site- the sitecontent- the content- Throws:
Exception- if an error occurs
-