[Rt-commit] [svn] r1764 - in DBIx-SearchBuilder/trunk: .
SearchBuilder/Record
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Tue Nov 9 02:38:07 EST 2004
Author: jesse
Date: Tue Nov 9 02:38:06 2004
New Revision: 1764
Modified:
DBIx-SearchBuilder/trunk/ (props changed)
DBIx-SearchBuilder/trunk/Changes
DBIx-SearchBuilder/trunk/SearchBuilder/Record/Cachable.pm
Log:
r8961 at tinbook: jesse | 2004-11-09T07:39:08.933422Z
Added a FlushCache method to DBIx::SearchBuilder::Record::Cachable
Modified: DBIx-SearchBuilder/trunk/Changes
==============================================================================
--- DBIx-SearchBuilder/trunk/Changes (original)
+++ DBIx-SearchBuilder/trunk/Changes Tue Nov 9 02:38:06 2004
@@ -9,6 +9,7 @@
- Minor refactoring of 'id' method for a stupid, tiny perf improvement
- Refactoring of DBIx::SearchBuilder::Record::Cachable for performance
improvement
+ - Added a FlushCache method to DBIx::SearchBuilder::Record::Cachable.
1.12
- Better error handling for some query build failure cases
Modified: DBIx-SearchBuilder/trunk/SearchBuilder/Record/Cachable.pm
==============================================================================
--- DBIx-SearchBuilder/trunk/SearchBuilder/Record/Cachable.pm (original)
+++ DBIx-SearchBuilder/trunk/SearchBuilder/Record/Cachable.pm Tue Nov 9 02:38:06 2004
@@ -35,6 +35,19 @@
$_CACHES{$cache}->expire_after( $self->_CacheConfig->{'cache_for_sec'} );
}
+
+=head2 FlushCache
+
+This class method flushes the _global_ DBIx::SearchBuilder::Record::Cachable
+cache. All caches are immediately expired.
+
+=cut
+
+sub FlushCache {
+ %_CACHES = ();
+}
+
+
sub _KeyCache {
my $self = shift;
my $cache = $self->_Handle->DSN . "-KEYS--" . $self->{'_Class'};
More information about the Rt-commit
mailing list