[Catalyst] contollers being cached.
Angel Kolev
ankolev at gmail.com
Tue Feb 26 09:41:50 GMT 2008
Sometimes if you have error in your code server is not restarted even
with '-r' and without error message. If you observe 'caching' just
restart the server and you will see the error.
Tyler Bird wrote:
> Hi,
>
> I just installed catalyst and I change parameter in my controller file
> say to retrieve a different ranking of books
>
>
> $context->stash->{books} = [
> $context->model('MyAppDB::Book')->search( { rating => 5 }
> ) ];
>
> to
>
> $context->stash->{books} = [
> $context->model('MyAppDB::Book')->search( { rating => 4}
> ) ];
>
>
> but when I visit the generated page it will not show the 4 rankings
> UNTIL I restart the catalyst test server.
>
> How can I make it so that all changes to controllers are automatically
> recognized and not cached
> until you restart the webserver?
>
> Thanks so much
>
> Tyler
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
More information about the Catalyst
mailing list