Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 5991-5996 (lines=6) @@
5988
            if ( 15 < count( $the_pods ) || 75 < count( $total_fields ) ) {
5989
                pods_transient_clear( $cache_key );
5990
5991
                if ( pods_api_cache() ) {
5992
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
5993
                        pods_cache_set( $cache_key, 'none', 'pods' );
5994
                    else
5995
                        pods_cache_set( $cache_key, $the_pods, 'pods' );
5996
                }
5997
            }
5998
            else {
5999
                pods_cache_clear( $cache_key, 'pods' );
@@ 6001-6006 (lines=6) @@
5998
            else {
5999
                pods_cache_clear( $cache_key, 'pods' );
6000
6001
                if ( pods_api_cache() ) {
6002
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
6003
                        pods_transient_set( $cache_key, 'none' );
6004
                    else
6005
                        pods_transient_set( $cache_key, $the_pods );
6006
                }
6007
            }
6008
        }
6009