Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 5943-5948 (lines=6) @@
5940
            if ( 15 < count( $the_pods ) || 75 < count( $total_fields ) ) {
5941
                pods_transient_clear( $cache_key );
5942
5943
                if ( pods_api_cache() ) {
5944
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
5945
                        pods_cache_set( $cache_key, 'none', 'pods' );
5946
                    else
5947
                        pods_cache_set( $cache_key, $the_pods, 'pods' );
5948
                }
5949
            }
5950
            else {
5951
                pods_cache_clear( $cache_key, 'pods' );
@@ 5953-5958 (lines=6) @@
5950
            else {
5951
                pods_cache_clear( $cache_key, 'pods' );
5952
5953
                if ( pods_api_cache() ) {
5954
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
5955
                        pods_transient_set( $cache_key, 'none' );
5956
                    else
5957
                        pods_transient_set( $cache_key, $the_pods );
5958
                }
5959
            }
5960
        }
5961