Comments (11)
Compatible in what sense? It should be fine to run the two side by side.
from wp-redis.
Maybe: Will Batcache put pages in wpcache thus in redis?
+36204242498
Ezen a készüléken nehéz gépelni.
Elnézést!
On April 7, 2016 1:35:46 PM CEST, Daniel Bachhuber [email protected] wrote:
Compatible in what sense? It should be fine to run the two side by
side.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#80 (comment)
from wp-redis.
Here is the error I'm getting:
Fatal error: Call to undefined function add_action() in /srv/www/trunk/wp-content/object-cache.php on line 1087
Clearly, Batcache is instantiating WP_Object_Cache before add_action
is available. I can fix if you guys want.
from wp-redis.
Clearly, Batcache is instantiating WP_Object_Cache before add_action is available.
Huh.
I can fix if you guys want.
What do you think the fix should be?
from wp-redis.
https://github.com/WordPress/WordPress/blob/master/wp-settings.php#L74
advanced-cache.php
is included before things like $wpdb
or add_action()
are defined.
from wp-redis.
The fix is getting rid of the "failback" flush as well as the admin notice error. If you guys are interested, I can create a PR.
from wp-redis.
The fix is getting rid of the "failback" flush as well as the admin notice error.
Er, removing a feature isn't really a fix. We'll need to find some other workaround.
from wp-redis.
Similar to how Batcache does it, we can inject our action instead on the $wp_filter
global: https://github.com/Automattic/batcache/blob/master/advanced-cache.php#L540
Alternatively, because the object cache is always re-initialized after advanced-cache.php runs, we could just have safety checks for add_action()
and $wpdb
being defined.
from wp-redis.
@tlovett1 Can you see if #81 works for your needs?
from wp-redis.
Works like a charm!
from wp-redis.
🔨
from wp-redis.
Related Issues (20)
- Implement `wp_cache_supports` function HOT 2
- many php warnings in my logs HOT 2
- CircleCI is not configured correctly HOT 4
- When `$wp_object_cache->is_redis_connected` is `false` there is a fatal error for `$missing_redis_message` HOT 4
- [BUGS-5944] Command "wp redis cli" fails HOT 1
- Fix some docblocks
- [BUGS-6118] PHP Deprecation notice on passing port = null @ Redis::connect() HOT 5
- As of WordPress 6.1 A Notice About Incorrect Support for `wp_cache_flush_runtime` HOT 8
- Re-add wordpress-upstream-tests to behat tests
- Fatal error in WP-CLI when accessing cache HOT 3
- esc_html is not safe to use (exception loop) HOT 3
- Implement PHPUnit and/or Behat tests for WP-CLI
- [BUGS-6318] file_exists(): open_basedir restriction in effect. HOT 9
- PHP 8.2 compatibility HOT 1
- [CMSP-467] Please don't strip all tags from the cache password. HOT 2
- [CMSP-470] Replace use of wp_strip_all_tags (possibly any wp filter function?) in object-cache.php
- Changes Merged from #360 Break Redis Connections on Pantheon Due to #400 and Incorrect array_replace_recursive call
- Large response size HOT 2
- [BUGS-6457] Warning when using tls protocol HOT 3
- PHP 8.1 deprecated warning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-redis.