diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-18 21:12:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-23 14:01:10 +0100 |
commit | 2b4ed83466ddf54f6d7e77088dc7e755f9259e91 (patch) | |
tree | 7320bb3b114c553c4aca398189e72a5efc84125c /perllib/FixMyStreet/DB/Schema.pm | |
parent | bbe8fb87daab16ca285521658bec1dcb2fbdf4d1 (diff) |
Use a schema cache to remember body lookups.
Diffstat (limited to 'perllib/FixMyStreet/DB/Schema.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Schema.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Schema.pm b/perllib/FixMyStreet/DB/Schema.pm index 45d731c33..10bbd434f 100644 --- a/perllib/FixMyStreet/DB/Schema.pm +++ b/perllib/FixMyStreet/DB/Schema.pm @@ -25,4 +25,6 @@ __PACKAGE__->connection(FixMyStreet->dbic_connect_info); has lang => ( is => 'rw' ); +has cache => ( is => 'rw', lazy => 1, default => sub { {} } ); + 1; |