}
sub get_content {
- my ($self, $path) = @_;
- my $content = $self->{app}->ccache->hash_get(CACHE_KEY, $path);
- if ($content) {
- # decode content body
- $content->{content} = Encode::decode_utf8($content->{content});
+ my ($self, $path, $options) = @_;
+ $options ||= {};
+ my $content;
+
+ if (!$options->{reload}) {
+ $content = $self->{app}->ccache->hash_get(CACHE_KEY, $path);
+ if ($content) {
+ # decode content body
+ $content->{content} = Encode::decode_utf8($content->{content});
+ }
}
if (!$content) {