# ri > AbstractController::Caching::Fragments

---
type: CommandReference
command: AbstractController::Caching::Fragments
mode: perldoc
section: 
source: perldoc
---

## Quick Reference

- `expire_fragment('name_of_cache')` — Manually expire a cache fragment.
- `fragment_exist?` — Check if a fragment exists.
- `read_fragment` — Read a cached fragment.
- `write_fragment` — Write a fragment.
- `combined_fragment_cache_key` — Combined fragment cache key.

## Name

Fragment caching is used for caching various blocks within views without caching the entire action as a whole. This is useful when certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be shared amongst multiple parties.

## Synopsis

The caching is done using the `cache` helper in Action View. See [ActionView::Helpers::CacheHelper](http://localhost/phpMan.php/perldoc/ActionView%3A%3AHelpers%3A%3ACacheHelper/markdown) for more information.

## Options

No options are documented.

## Examples

ruby
expire_fragment('name_of_cache')
## See Also

- [ActionView::Helpers::CacheHelper](http://localhost/phpMan.php/perldoc/ActionView%3A%3AHelpers%3A%3ACacheHelper/markdown)

## Exit Codes

Not documented.