Skip to content

Added more dependency options

Pre-release
Pre-release
Compare
Choose a tag to compare
@steroberts89 steroberts89 released this 25 Jun 17:46
· 5 commits to master since this release

I have tidied the code a little and added some options for the dependencies

  • ContentDependency - Requires a node Id which to tie to, if that content item get updated, then the cache is flushed. Has an optional parameter of catchChildren, this will make the cache expire if any children of the specified node are edited.
  • MediaDependency - Accepts a media Id which to tie to, if that content item get updated, then the cache is flushed for that item.
  • AllMediaOfTypeDependency - Requires a node ID of a media type. If any media items of that type are changed, then the cache is flushed.
  • AllContentOfTypeDependency - Requires a node ID of a document type or an alias. If any documents of that type are changed, then the cache is flushed.