Navigation Menu

Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 21, 2011
1 parent 085424e commit dd2dc7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/Mount.pm
Expand Up @@ -15,7 +15,7 @@ sub register {
$path = $3;
$path = '/' unless defined $path;
$domain = qr/^$domain$/i;
$app->routes->cache(undef);
$app->routes->cache(0);
}
else { $path = $prefix }

Expand Down
7 changes: 5 additions & 2 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -672,10 +672,13 @@ The children of this routes object, used for nesting routes.
my $cache = $r->cache;
$r = $r->cache(Mojo::Cache->new);
Routing cache, can be disabled with C<undef>, by default a L<Mojo::Cache>
object.
Routing cache, by default a L<Mojo::Cache> object.
Note that this attribute is EXPERIMENTAL and might change without warning!
$r->cache(0);
Route caching can also be disabled with a false value.
=head2 C<conditions>
my $conditions = $r->conditions;
Expand Down

0 comments on commit dd2dc7a

Please sign in to comment.