Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 5773-5778 (lines=6) @@
5770
            if ( 15 < count( $the_pods ) || 75 < count( $total_fields ) ) {
5771
                pods_transient_clear( $cache_key );
5772
5773
                if ( pods_api_cache() ) {
5774
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
5775
                        pods_cache_set( $cache_key, 'none', 'pods' );
5776
                    else
5777
                        pods_cache_set( $cache_key, $the_pods, 'pods' );
5778
                }
5779
            }
5780
            else {
5781
                pods_cache_clear( $cache_key, 'pods' );
@@ 5783-5788 (lines=6) @@
5780
            else {
5781
                pods_cache_clear( $cache_key, 'pods' );
5782
5783
                if ( pods_api_cache() ) {
5784
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
5785
                        pods_transient_set( $cache_key, 'none' );
5786
                    else
5787
                        pods_transient_set( $cache_key, $the_pods );
5788
                }
5789
            }
5790
        }
5791