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