@@ 5780-5785 (lines=6) @@ | ||
5777 | if ( 15 < count( $the_pods ) || 75 < count( $total_fields ) ) { |
|
5778 | pods_transient_clear( $cache_key ); |
|
5779 | ||
5780 | if ( pods_api_cache() ) { |
|
5781 | if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) ) |
|
5782 | pods_cache_set( $cache_key, 'none', 'pods' ); |
|
5783 | else |
|
5784 | pods_cache_set( $cache_key, $the_pods, 'pods' ); |
|
5785 | } |
|
5786 | } |
|
5787 | else { |
|
5788 | pods_cache_clear( $cache_key, 'pods' ); |
|
@@ 5790-5795 (lines=6) @@ | ||
5787 | else { |
|
5788 | pods_cache_clear( $cache_key, 'pods' ); |
|
5789 | ||
5790 | if ( pods_api_cache() ) { |
|
5791 | if ( empty( $the_pods ) && ( !isset( $params->count ) || !$params->count ) ) |
|
5792 | pods_transient_set( $cache_key, 'none' ); |
|
5793 | else |
|
5794 | pods_transient_set( $cache_key, $the_pods ); |
|
5795 | } |
|
5796 | } |
|
5797 | } |
|
5798 |