which solution is best for us? Redis or CF?
Can I set up "page for guest cache" on CF with pro plan? Or only with business?For which cache page level guest cache ? for that Cloudflare.
For CSS what is the best?For which cache page level guest cache ? for that Cloudflare. Just use Redis for non-page Xenforo caching combined with Cloudflare
$config['pageCache']['routeMatches'] (default: []) - an array of route prefixes where the cache is active. For example, ['threads/', 'forums/'] would only cache thread- and forum-related pages.
full page cache for guests can be done on Cloudflare with either Business plan or Cloudflare Workers if you code Workers to do full page guest cache with cache bypass on cookie. I use Cloudflare Business and Enterprise plans with bypass cache on cookie full guest HTML page cache and also Cloudflare Worker based bypass cache on cookie full guest HTML page cache and works well for Wordpress and Xenforo and also combined with Xon's Redis cache addon for Xenforo and Redis object cache for WordpressCan I set up "page for guest cache" on CF with pro plan? Or only with business?
clarify non-full page cache use Cloudflare CDN cache for static images on top too. Xon's Redis cache is mainly to reduce amount of hits to backend database server.For CSS what is the best?
the old version is from the distribution, it's in the epel repository ( https://centos.pkgs.org/7/epel-x86_64/12/ ) and maintained by red hat.Redis 3.2 is rather old. It is likely the stats either don't exist in that version or have a different name.
You can also try refreshing a few times and see if it is just a lack of site activity
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/enabled
/etc/systemd/system/disable-transparent-huge-pages.service
[Unit]
Description=Disable Transparent Huge Pages
DefaultDependencies=no
After=sysinit.target local-fs.target
Before=basic.target
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/sh -c '/bin/echo never > /sys/kernel/mm/transparent_hugepage/enabled'
ExecStart=/bin/sh -c '/bin/echo never > /sys/kernel/mm/transparent_hugepage/defrag'
[Install]
WantedBy=basic.target
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = array(
'server' => '10.1.1.10',
'port' => 6379,
'connect_retries' => 2,
'use_lua' => true,
'compress_data' => 1,
'read_timeout' => 1,
'timeout' => 1,
'password' => '***********',
'database' => '2',
'persistent' => true,
);
Fatal error: Uncaught TypeError: Failed to create closure from callable: class 'SV\RedisCache\Redis' does not have a method 'redisQueryForStatDebug' in /home/admin/domains/forum.xxxxxx.com/public_html/src/addons/SV/RedisCache/Redis.php:159 Stack trace: #0 /home/admin/domains/forum.xxxxxx.com/public_html/src/addons/SV/RedisCache/Redis.php(159): Closure::fromCallable(Array) #1 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/CacheFactory.php(66): SV\RedisCache\Redis->__construct(Array) #2 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/CacheFactory.php(34): XF\CacheFactory->instantiate('SV\\RedisCache\\R...', Array) #3 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/App.php(687): XF\CacheFactory->create('SV\\RedisCache\\R...', Array) #4 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/Container.php(228): XF\App->XF\{closure}('', Array, Object(XF\Container)) #5 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/App.php(2491): XF\Container->create('cache', '') #6 /home/admin/domains/f in /home/admin/domains/forum.xxxxxx.com/public_html/src/addons/SV/RedisCache/Redis.php on line 159
Fatal error: Uncaught TypeError: Failed to create closure from callable: class 'SV\RedisCache\Redis' does not have a method 'redisQueryForStatDebug' in /home/admin/domains/forum.xxxxxx.com/public_html/src/addons/SV/RedisCache/Redis.php:159 Stack trace: #0 /home/admin/domains/forum.xxxxxx.com/public_html/src/addons/SV/RedisCache/Redis.php(159): Closure::fromCallable(Array) #1 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/CacheFactory.php(66): SV\RedisCache\Redis->__construct(Array) #2 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/CacheFactory.php(34): XF\CacheFactory->instantiate('SV\\RedisCache\\R...', Array) #3 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/App.php(687): XF\CacheFactory->create('SV\\RedisCache\\R...', Array) #4 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/Container.php(228): XF\App->XF\{closure}('', Array, Object(XF\Container)) #5 /home/admin/domains/forum.xxxxxx.com/public_html/src/XF/App.php(2491): XF\Container->create('cache', '') #6 /home/admin/domains/f in /home/admin/domains/forum.xxxxxx.com/public_html/src/addons/SV/RedisCache/Redis.php on line 159
- Fix debug mode support for php 7.2 and earlier.
We use essential cookies to make this site work, and optional cookies to enhance your experience.