• Resolved zu2

    (@zu2)


    diff -uNr wordpress-popular-posts.orig/public/class-wordpress-popular-posts-public.php wordpress-popular-posts/public/class-wordpress-popular-posts-public.php
    — wordpress-popular-posts.orig/public/class-wordpress-popular-posts-public.php 2017-10-22 02:33:14.000000000 +0900
    +++ wordpress-popular-posts/public/class-wordpress-popular-posts-public.php 2017-10-24 04:03:25.000000000 +0900
    @@ -445,6 +445,7 @@
    case ‘year’:
    $time = 60 * 60 * 24 * 365;
    break;
    + }

    $expiration = $time * $this->admin_options[‘tools’][‘cache’][‘interval’][‘value’];

    @@ -464,8 +465,6 @@
    }
    }

    – }

    }

    $cached = true;

    • This topic was modified 7 years, 5 months ago by zu2.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Please explain in full detail what’s going on, what you posted doesn’t tell me anything. Include reproduction steps and other info you feel I might find useful.

    Thread Starter zu2

    (@zu2)

    In public/class-wordpress-popular-posts-public.php :

    This program is trying to cache the results of WP_Query.
    However, because the ‘}’ position of the switch statement is incorrect, this is not working.
    This problem has occurred since 4.0.0.

    thanks.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks! Alright, I’ll look into it as soon as possible.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Fixed it! An update will follow in a few hours, so please upgrade as soon as possible.

    Thanks for the heads-up!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Query Cache not work’ is closed to new replies.