##REDIS CACHE PERMANENTLY PRODUCT AND CATEGORY PAGES function custom_redis_cache_ttl_ro( $ttl, $key ) { if ( isset( $_SERVER['REQUEST_URI'] ) ) { $uri = $_SERVER['REQUEST_URI']; // Check if the URL is under /product-category/ or /product/ if ( strpos( $uri, '/product-category/' ) !== false || strpos( $uri, '/product/' ) !== false ) { // Return 0 to store this key permanently return 0; } } return $ttl; } add_filter( 'redis_object_cache_ttl', 'custom_redis_cache_ttl_ro', 10, 2 ); VIVECE - ShopMall.bg
-10%
Original price was: 13,93 лв..Текущата цена е: 12,54 лв..
-10%
Original price was: 11,95 лв..Текущата цена е: 10,75 лв..
-10%
Original price was: 15,92 лв..Текущата цена е: 14,33 лв..
-10%
Original price was: 11,95 лв..Текущата цена е: 10,75 лв..
-10%
Original price was: 13,93 лв..Текущата цена е: 12,54 лв..
-10%
Original price was: 13,93 лв..Текущата цена е: 12,54 лв..
-10%
Original price was: 13,93 лв..Текущата цена е: 12,54 лв..