| | |
| | | <?php |
| | | |
| | | use JVBase\managers\CacheManager; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | | exit; // Exit if accessed directly |
| | | } |
| | |
| | | function jvbRenderArtistSummary():string |
| | | { |
| | | $current = get_queried_object(); |
| | | $cache = new JVBase\managers\CacheManager('artists', WEEK_IN_SECONDS); |
| | | $cache = CacheManager::for('artists', WEEK_IN_SECONDS); |
| | | $key = 'artist-bio-'.$current->ID; |
| | | $cached = $cache->get($key); |
| | | $cached = false; |
| | |
| | | { |
| | | $current = get_queried_object(); |
| | | |
| | | $cache = new JVBase\managers\CacheManager('shops', WEEK_IN_SECONDS); |
| | | $cache = CacheManager::for('shops', WEEK_IN_SECONDS); |
| | | $key = 'shop-bio-'.$current->term_id; |
| | | $cached = $cache->get($key); |
| | | $cached = false; |
| | |
| | | function jvbRenderTermSummary() |
| | | { |
| | | $current = get_queried_object(); |
| | | $cache = new JVBase\managers\CacheManager($current->taxonomy, WEEK_IN_SECONDS); |
| | | $key = $current->taxonomy.'-'.$current->ID; |
| | | $cache = CacheManager::for(jvbNoBase($current->taxonomy), WEEK_IN_SECONDS); |
| | | $key = $current->ID; |
| | | $cached = $cache->get($key); |
| | | $cached = false; |
| | | if ($cached !== false) { |