Package org.ametys.web.cache
Interface CacheInvalidationPolicy
- All Known Implementing Classes:
DefaultCacheInvalidationPolicy
public interface CacheInvalidationPolicy
Component responsible for policy of cache invalidation
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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, SitemapElement parent, String pageId, String pathInSitemap) Invalidate cache on a page deletionvoid
Invalidate cache on a minor page change.void
Invalidate cache when a page is modified.void
invalidateCacheOnPageMove
(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
-