Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

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