```ruby
class AvatarsController < ApplicationController
  include DynamicImage::Controller

  private

  def model
    Avatar
  end
end
```

Enable page caching for avatars
user
```ruby
class AvatarsController < ApplicationController
  include DynamicImage::Controller

  caches_page :show, :uncropped, :original

  private

  def model
    Avatar
  end
end
```
assistant