[Jifty-commit] r5066 - in jifty/trunk: lib

Jifty commits jifty-commit at lists.jifty.org
Thu Feb 7 14:03:22 EST 2008


Author: alexmv
Date: Thu Feb  7 14:03:21 2008
New Revision: 5066

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty.pm

Log:
 r27687 at zoq-fot-pik:  chmrr | 2008-02-07 14:03:12 -0500
  * Cache triggers for session and metadata


Modified: jifty/trunk/lib/Jifty.pm
==============================================================================
--- jifty/trunk/lib/Jifty.pm	(original)
+++ jifty/trunk/lib/Jifty.pm	Thu Feb  7 14:03:21 2008
@@ -223,6 +223,12 @@
     Jifty->class_loader($class_loader);
     $class_loader->require;
 
+    # Cache triggers on our model classes (the classloader does this
+    # for app model classes)
+    $_->finalize_triggers
+        for grep { $_->can('finalize_triggers') }
+        qw/Jifty::Model::Metadata Jifty::Model::Session/;
+
     # Configure the request handler and action API handler
     Jifty->handler(Jifty::Handler->new());
     Jifty->api(Jifty::API->new());


More information about the Jifty-commit mailing list