summaryrefslogtreecommitdiffstats
path: root/lib/class/database_object.abstract.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2011-06-24 11:53:42 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2011-06-24 11:53:42 -0400
commit7852811c2acaa18a7a194c5e22773ff5da35804a (patch)
tree15c9a7f0749dde01167c8980767635d1ee9bb98d /lib/class/database_object.abstract.php
parent998f74ac714121c8d1b321623c379d22bdf71597 (diff)
downloadampache-7852811c2acaa18a7a194c5e22773ff5da35804a.tar.gz
ampache-7852811c2acaa18a7a194c5e22773ff5da35804a.tar.bz2
ampache-7852811c2acaa18a7a194c5e22773ff5da35804a.zip
Add clear_cache() to database_object
Diffstat (limited to 'lib/class/database_object.abstract.php')
-rw-r--r--lib/class/database_object.abstract.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/class/database_object.abstract.php b/lib/class/database_object.abstract.php
index 781c98c5..532dc37f 100644
--- a/lib/class/database_object.abstract.php
+++ b/lib/class/database_object.abstract.php
@@ -76,6 +76,13 @@ abstract class database_object {
} // get_info
/**
+ * clear_cache
+ */
+ public static function clear_cache() {
+ self::$object_cache = array();
+ }
+
+ /**
* is_cached
* this checks the cache to see if the specified object is there
*/