src/ORM/DataObject.php
public static function flush_and_destroy_cache()
    {
        if (self::$_cache_get_one) {
            foreach (self::$_cache_get_one as $class => $items) {
                if (is_array($items)) {
                    foreach ($items as $item) {
                        if ($item) {
                            $item->destroy();
                        }
                    }
                }
            }
        }
        self::$_cache_get_one = array();
    }
public static function flush_and_destroy_cache()
    {
        if (self::$_cache_get_one) {
            foreach (self::$_cache_get_one as $class => $items) {
                if (is_array($items)) {
                    foreach ($items as $item) {
                        if ($item) {
                            $item->destroy();
                        }
                    }
                }
            }
        }
        self::$_cache_get_one = array();
    }
public static function flush_and_destroy_cache ( ) { if ( self :: $ _cache_get_one ) { foreach ( self :: $ _cache_get_one as $ class => $ items ) { if ( is_array ( $ items ) ) { foreach ( $ items as $ item ) { if ( $ item ) { $ item -> destroy ( ) ; } } } } } self :: $ _cache_get_one = array ( ) ; }
Flush the get_one global cache and destroy associated objects.
Flush the get_one global cache and destroy associated objects .