Guest page caching

vikasdangi

Member
I also having the same problem. My php version is 7.4, I also checked the problem in php 7.3, 7.2, 7.1, 7.0.
My hosting provider is runcloud.
 

Masetrix

Well-known member
We have done a few tests in the meantime and attribute the problem to Redis.
First we tested the XFs disk cache where the problem no longer occurred.
We are now using Memcache and there is no longer a problem with PageCache.
 

vikasdangi

Member
We have done a few tests in the meantime and attribute the problem to Redis.
First we tested the XFs disk cache where the problem no longer occurred.
We are now using Memcache and there is no longer a problem with PageCache.
I have tried all three Redis, Memcached and Filesystem cache, and problem occurring in all of them.

Can you provide the full config code used for memcached and disk cache
 

Masetrix

Well-known member
I remember trying that too and the problem still occurred on Memcache too.
Completely without Redis, and only Memcached, there are no more problems here.

Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Memcached';
$config['cache']['config'] = [
    'server' => '127.0.0.1'
];
 

vikasdangi

Member
$config['cache']['enabled'] = true; $config['cache']['provider'] = 'Memcached'; $config['cache']['config'] = [ 'server' => '127.0.0.1' ];
I think this code will not enable guest page caching. I am talking about guest page caching with memcached or filesystem or redis.
 

vikasdangi

Member
Completely without Redis, and only Memcached, there are no more problems here.

Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Memcached';
$config['cache']['config'] = [
    'server' => '127.0.0.1'
];
you need something like this code to enable guest page cache with memcached:

PHP:
$config['cache']['enabled'] = true;
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Memcached';
$config['cache']['context']['page']['config'] = [
        'host' => '127.0.0.1',
        'port' => 6379,
        'database' => 4
        ];
And the problem exists with this code.
 

Masetrix

Well-known member
I have tried all three Redis, Memcached and Filesystem cache, and problem occurring in all of them.

Can you provide the full config code used for memcached and disk cache
Here my old Config for FileSystemCache:
Code:
$config['cache']['enabled'] =  true;
$config['cache']['provider'] = 'Filesystem';
$config['cache']['config'] = ['directory' => '/var/www/vhosts/mydomain.tld/httpdocs/internal_data/xenforo-cache']; // fullpath must exist!
$config['cache']['registry'] = true;
$config['cache']['sessions'] = true;
$config['cache']['css']['enabled'] = true;
// guest page cache
$config['pageCache']['enabled'] = true;
$config['pageCache']['provider'] = 'Filesystem';
$config['pageCache']['config'] = ['directory' => '/var/www/vhosts/mydomain.tld/httpdocs/internal_data/xenforo-cache'];
$config['pageCache']['lifetime'] = 300;
$config['pageCache']['recordSessionActivity'] = true;
 
Last edited:

Masetrix

Well-known member
@all You are right. The problem also occurs when using memcached or XF's hard disk cache.

For me here, however, not when I use Firefox72.0.1 (64-Bit), but only with Chrome( Version 79.0.3945.117). My (test) error Sorry for that.
 
Last edited:
Top