memoize GetBranches
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 24 Oct 2010 15:53:23 +0000 (17:53 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 6 Nov 2011 04:45:55 +0000 (05:45 +0100)
C4/Branch.pm

index 2beac98..58f7342 100644 (file)
@@ -50,6 +50,9 @@ BEGIN {
        @EXPORT_OK = qw( &onlymine &mybranch get_branch_code_from_name );
 }
 
+use Memoize;
+memoize 'GetBranches';
+
 =head1 NAME
 
 C4::Branch - Koha branch module