Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 6024-6029 (lines=6) @@
6021
            if ( 15 < count( $the_pods ) || 75 < count( $total_fields ) ) {
6022
                pods_transient_clear( $cache_key );
6023
6024
                if ( pods_api_cache() ) {
6025
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
6026
                        pods_cache_set( $cache_key, 'none', 'pods' );
6027
                    else
6028
                        pods_cache_set( $cache_key, $the_pods, 'pods' );
6029
                }
6030
            }
6031
            else {
6032
                pods_cache_clear( $cache_key, 'pods' );
@@ 6034-6039 (lines=6) @@
6031
            else {
6032
                pods_cache_clear( $cache_key, 'pods' );
6033
6034
                if ( pods_api_cache() ) {
6035
                    if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) )
6036
                        pods_transient_set( $cache_key, 'none' );
6037
                    else
6038
                        pods_transient_set( $cache_key, $the_pods );
6039
                }
6040
            }
6041
        }
6042