Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

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