X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg.pm;h=b1373849f14dfc5445fb6dd6703553f0f4bcf87c;hp=daa3353c1a7758d04c32a38210f3d22b938493b5;hb=117659ee02ba32bf59335bf18faa7a075f231709;hpb=95e4856fce90f6549822707c1dd28bdcbec5f540 diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index daa3353c1..b1373849f 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -56,9 +56,11 @@ $disable_agentcheck = 0; $upgrade = 0; #go away after setup+start dates cleaned up for old customers +our $cache_enabled = 0; + sub _simplecache { my( $self, $hashref ) = @_; - if ( $hashref->{'pkg'} ) { + if ( $cache_enabled && $hashref->{'pkg'} && $hashref->{'plan'} ) { $self->{'_pkgpart'} = FS::part_pkg->new($hashref); } }