• Resolved lens2016

    (@lens2016)


    Hi,

    I have following issue:

    My custom plugin that displays company pages outputs 404 pages in the secondary languages. When flushing redis cache these pages do work again for a while till some combination of request or other, which I do not know, happen. The main language English does always work.

    At the moment I cannot reproduce the problem, it only happens after one or two days and I need to flush the cache to solve it.

    What is the best way to figure out what goes wrong? For the multi language setup I use WPML. Is there a way to exclude a plugin from the redis cache?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Hi!

    Yes you can use cache groups to exclude WPML (which is notoriously bad at object caching) from Bringen cached entirely.

    Thread Starter lens2016

    (@lens2016)

    Hi Till,
    thanks for your reply, I guess I should have looked into the wiki earlier ;).

    Question how should the config look like

    “WP_REDIS_IGNORED_GROUPS (default: [‘counts’, ‘plugins’])”

    Is it like:

    define ('WP_REDIS_IGNORED_GROUPS', ['counts', 'wpml-pluginame'])

    Maybe you could give an example cause I am note sure about the “counts”. Thanks

    Plugin Author Till Krüss

    (@tillkruess)

    By default WordPress ignores plugins, themes and counts, it’s best to keep them in that list:

    
    define( 'WP_REDIS_IGNORED_GROUPS', [
      'plugins',
      'themes',
      'counts',
      'wpml-pluginame',
    ] );
    

    I’m not sure what the WPML cache groups are called, but there is a guide for the Pro version on how to find out: https://objectcache.pro/docs/ignoring-groups/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘404 on custom plugin with WPML’ is closed to new replies.