RSS Feed/News Guest page caching vs. Database replication

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,583
Points
823

Reputation:

Is it true, that with a database replication (MySQL master/slave setup) guest page caching does not work? And if that's true, is that behavior desired?

Looking at the XF core code it seems that the config.php option $config['db']['adapterClass'] = 'XF\Db\Mysqli\ReplicationAdapter'; brings a cookie named dbWriteForced with it. And this cookie prevents pages from being cacheable (i.e. XF\PageCache::isResponseSaveable() returns false).

XF v2.2.11.

Continue reading...
 
Status
Not open for further replies.
Top