I've tried disabling it a couple of times, but page generation times increase by about 30% when I disable it. Would that mean I've got a problem elsewhere? Here's what I used to disable it in real-time to perform the test:
set global query_cache_type=0;
flush query cache;
reset query cache;
You may want to enable XF caching
I tried using this (https://xenforo.com/community/threads/wincache-support.6494/) Wincache plugin for the XF cache backend, but it didn't seem to make much difference compared to having an opcache running (which made a huge difference).
I'm happy to give an XF cache a try as an experiment, if there's something Windows compatible.
Do you have "Fetch public templates as files" set?
Memcached is available for Windows.
If memcached is too annoying to setup, just use filecache
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] ['cache_dir'] = '/srv/http/techraptor/community/file_cache';
This is what I have setup on linux (that directory is ramdisk, actually)
I'm sure you can do similar on windows
Opcode caching, and "Fetch public templates as files" are designed to work together and they provide a decent performance gain.I've tested it for a couple of hours, but that's about it. Are there tangible performance improvements to be had with that and OpCache? If so, I'll enable it.
Page Time: 0.5102s
Memory: 3.6099 MB (Peak: 10.4630 MB)
Queries (14, time: 0.0160s, 3.1%)
If MySQL queries are taking only 3.1% of the total time, then the problem must lie elsewhere?
We use essential cookies to make this site work, and optional cookies to enhance your experience.