Support » Plugin: Docket Cache - Object Cache Accelerator » How to avoid caching certain content?

  • Resolved Jorge Ocampo


    I really like Docket, but if I try to filter the data of my “TIN CANNY REPORTING FOR LEARNDASH”, the data is nop updated, I have to clean cache on every query.

    So, how to avoid caching this data?
    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nawawi Jamili



    It is a little bit technical. You need to know which cache group that involve with your page.

    1. Enable cache log. Configuration -> Cache Log
    2. Example from cache log:

    [2021-07-28 18:19:34 UTC] hit  : "e6e6f4013d03-4f29ea6d5a6b" "site-transient:update_core" "/"

    Timestamp = 2021-07-28 18:19:34 UTC
    Cache Status = Hit
    Cache Group = site-transient
    Cache Key = update_core
    URL Path = “/”

    3. Edit wp-config.php and define these constants.

    Ignore cache for group:
    define('DOCKET_CACHE_IGNORED_GROUPS', ['site-transient']);

    Or Ignore cache for key:
    define('DOCKET_CACHE_IGNORED_KEYS', ['update_core']);

    Or Ignore cache match for group and key:
    define('DOCKET_CACHE_IGNORED_GROUPKEY', ['site-transient:update_core']);

    You can refer to the documentation here, but it is not complete yet, some constant not in the documentation.


    Thread Starter Jorge Ocampo


    Thank you @nawawijamili, gonna try what you suggest.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.