Guest User

Untitled

a guest
Sep 10th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. add_filter('redis_object_cache_pro_key_prefixes', function ($prefixes) {
  2. // Exclude transients and TagDiv-related data from Redis
  3. $prefixes[] = 'tdc_check_domain'; // Prevent license call caching
  4. $prefixes[] = 'tdc_license'; // Just in case license is stored here
  5. $prefixes[] = 'tagdiv'; // Generic
  6. return $prefixes;
  7. });
  8.  
  9. add_filter('redis_object_cache_should_ignore', function ($ignore, $group, $key) {
  10. $groups_to_exclude = [
  11. 'transient', 'transient_timeout', 'tdc_check_domain', 'tdc_license', 'tagdiv'
  12. ];
  13. return in_array($group, $groups_to_exclude) ? true : $ignore;
  14. }, 10, 3);
  15.  
Advertisement
Add Comment
Please, Sign In to add comment