Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 6082-6087 (lines=6) @@
6079
            if ( 15 < count( $the_pods ) || 75 < count( $total_fields ) ) {
6080
                pods_transient_clear( $cache_key );
6081
6082
                if ( pods_api_cache() ) {
6083
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
6084
                        pods_cache_set( $cache_key, 'none', 'pods' );
6085
                    else
6086
                        pods_cache_set( $cache_key, $the_pods, 'pods' );
6087
                }
6088
            }
6089
            else {
6090
                pods_cache_clear( $cache_key, 'pods' );
@@ 6092-6097 (lines=6) @@
6089
            else {
6090
                pods_cache_clear( $cache_key, 'pods' );
6091
6092
                if ( pods_api_cache() ) {
6093
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
6094
                        pods_transient_set( $cache_key, 'none' );
6095
                    else
6096
                        pods_transient_set( $cache_key, $the_pods );
6097
                }
6098
            }
6099
        }
6100