Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Fabian implemented this, I'm just rolling it for him.
This allows settings things up to allow serving pages from memcache without needing to bootstrap the database, etc.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff_2-4.txt | 1.15 KB | joegraduate |
#4 | 2995169-cache-tag-cache--4.patch | 3.95 KB | joegraduate |
#2 | 2995169-cache-tag-cache.patch | 4.33 KB | bdragon |
Comments
Comment #2
bdragon CreditAttribution: bdragon at Tag1 Consulting for Pac-12 Networks commentedComment #3
joegraduateFor the sake of consistency with existing code in this module (and because Drupal 7 technically supports PHP < 5.4), it'd probably be best not to use short array syntax.
return array();
return array();
$result = array();
Comment #4
joegraduateComment #5
bdragon CreditAttribution: bdragon at Tag1 Consulting for Pac-12 Networks commentedBlame PHPStorm for that one. It changed them while I was looking the other way.
Comment #6
vinmassaro CreditAttribution: vinmassaro commentedI tested the patch in #3 with D8cache, Authcache, and Redis, with the below config in settings.php. I get some weird behavior with authcache_debug where it doesn't report out all of the timing info as it does without this patch and not setting
$conf['authcache_builtin_cache_without_database'] = TRUE;
. The only thing I can tell is that d8cache no longer throws `Call to undefined function db_query() in _d8cache_cache_tags_calculate_checksum' errors when setting$conf['authcache_builtin_cache_without_database'] = TRUE;
, so that seems to work.Comment #7
bdragon CreditAttribution: bdragon at Tag1 Consulting for Pac-12 Networks commentedIgnore this patch, it's for some internal testing over here and I need to be able to apply it alongside some other changes that touch the same code.
Comment #8
stevectorShould there be an update to the readme with this patch?
The current readme seems to imply that d8cache can be used with Redis/Memcache but that the d8cache bins still use the database.
Comment #9
Fabianx CreditAttribution: Fabianx at Tag1 Consulting for Pantheon commentedWe should call drupal_bootstrap instead of calling this directly.
---
Except for that, this is RTBC, over to Brandon
Comment #11
bdragon CreditAttribution: bdragon at Tag1 Consulting for Pac-12 Networks, Pantheon commentedCommitted, back to active for documentation
Comment #13
bdragon CreditAttribution: bdragon at Tag1 Consulting for Pac-12 Networks, Pantheon commentedDocumentation written.