Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Redis Object Cache Full compatible with the Batcache Plugin #17

Closed
portablesoft opened this issue Oct 29, 2015 · 5 comments
Closed

Comments

@portablesoft
Copy link

Hi,

Batcache is a full page cache plugin using an object cache plugin. It could cache pages in the memory.

I install the Redis Object Cache and Batcache. However, I could not get the cached page even I refresh the page for many times. Batcache just recreate a new page cache when I refresh the page. It did not send the old cached page.

Is there any compatible issues between Redis Object Cache and the Batcache Plugin? Thanks.

Batcache: https://wordpress.org/plugins/batcache/

@jerclarke
Copy link
Contributor

Are you sure that the Redis object cache is working in general? It could be that Batcache is failing because you don't have this plugin configured properly.

You can test by enabling the Debug Bar plugin and reviewing the Object Cache section, which should list all the internal variables being stored in Redis and cached across pages. Specifically you should notice that disabling the Redis Object Cache causes the number of "misses" to go way up compared to when it's active.

@tillkruss
Copy link
Member

@rohmann submitted 2 PRs for Batcache compatibly. It should work. See #9 and #11.

@portablesoft
Copy link
Author

@jeremyclarke @tillkruss thanks. I use the advanced-cache.php by @rohmann and the cache work well now.

However, the advanced-cache.php from the official WordPress plugin site could still not work correctly. I noticed that the plugin was 'Last Updated: 2 weeks ago'.

So I think the new version of Batcache could not use Redis Object Cache as backend now. But I'm only a WordPress user not a developer, I could not find what was changed and why it fails on Redis Object Cache.

@rohmann 's Batcache: https://github.com/rohmann/batcache
Batcache on the WordPress plugin: https://wordpress.org/plugins/batcache/

@tillkruss
Copy link
Member

You can use a file diff tool like FileMerge or Kaleidoscope to check out the differences.

@tillkruss
Copy link
Member

@portablesoft: v1.3.5 includes a some Batcache related improvements. Let me know if you're experiencing any issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants