Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

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