• Resolved Jorge Ocampo

    (@jorgeocampo)


    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.

    View post on imgur.com

    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

    (@nawawijamili)

    Hi,

    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 https://docs.docketcache.com/constants#docket_cache_ignored_groups, but it is not complete yet, some constant not in the documentation.

    Thanks.

    • This reply was modified 3 years, 8 months ago by Nawawi Jamili.
    Thread Starter Jorge Ocampo

    (@jorgeocampo)

    Thank you @nawawijamili, gonna try what you suggest.
    Regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to avoid caching certain content?’ is closed to new replies.