• Resolved dimal

    (@dimalifragis)


    Hello,

    I see that Docket cache also caches pages called outside of the current site. In my case some security & IP checks.

    I would like to ask if it is possible for Docket cache to cache only what is within the WordPress site.

    Thanks

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

    (@nawawijamili)

    Hi there,

    Docket Cache is an object caching plugin. It caches WordPress objects and only operates within WordPress.

    We cannot cache objects outside the current site unless it is done manually by using the wp_cache_set/wp_cache_add functions.

    Thanks.

    Thread Starter dimal

    (@dimalifragis)

    This (for example) is shown as OPCache “Other Files” cached:

    /home/plan_name/php_cdr3/vault/Maikuolan/Common/Events.php

    and this is OUTSIDE WordPress. Maybe i’m not understanding this right?

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi,

    Docket Cache OPcache viewer uses “opcache_get_status“, it will list all available files under the same user/group that have been cached by OPcache.

    Yes, it is possible to exclude it from the list it in the next release.

    Thanks.

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    @dimal

    You may download and try the dev version here: https://docketcache.com/devtest/docket-cache-230803-rc1.zip

    And define this constant in your wp-config.php to enable the listing of OPcache files outside the current site path to verify fixes.

    define('DOCKET_CACHE_OPCVIEWER_SHOWALL', true);

    Thanks.

    Thread Starter dimal

    (@dimalifragis)

    Ok, i will. Just to clear something about my original question: files outside WP are cached or not? You replied that they are not and now we are talking about hiding them.

    Excuse my probably stupid questions, i’m not an expert in all those object caching things.

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Docket Cache OPcache viewer only displays what has been cached by OPcache.

    If other files have been cached by OPcache which your webserver has access to. For example, site 1 and site 2 use the same webserver user/group or php-fpm user/group that allows OPcache to cache it.

    It’s more to the server setting. And yes its cached.

    What Docket Cache does is, it saves WordPress objects to a php file, to be cached by OPcache. Apart from its own cache files, it cannot control them.

    Hope this helps to explain it.

    Thanks.

    Thread Starter dimal

    (@dimalifragis)

    Crystal clear. Thank you, appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Caching limited to the website only’ is closed to new replies.