Docket Cache on localhost with XAMPP
-
Is it possible to use Docket Cache on localhost with XAMPP? Opcache is enabled.
Thanks in advance. Regards,
-
This topic was modified 2 years ago by
vipteam. Reason: typo
-
This topic was modified 2 years ago by
-
Hi there,
Last time we tested it on Windows using Laragon and it worked as expected. And we believe it should work with XAMPP. Otherwise please report any issues while using it.
Thanks.
Hi Nawawi,
I tried Docket Cache on my two sites on localhost with XAMPP. I got mixed results.
TEST website 1 (working)
Installation without problems. The complete website works without any problems after installing Docket Cache. I am delighted. The loading speed (frontend and backend) of the website is equal to the speed of the website online on a good server. That was exactly my goal. 3 seconds for the admin dashboard and 1 second for the frontend. I can again enjoy working on XAMPP on Windows 10. WP Theme is Storefront. Here is WooCommerce, which in itself is heavy and slow, and the other slightly more than 20 plugins.
TEST website 2 (not working)
It’s a website I’m building and should go live online soon. WP Theme (from ThemeForest). Installation without problems. After installing Docked Cache I can’t access the website. It is displayed:
This site can’t be reachedThe connection was reset.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESETDebug shows nothing.
debug.log shows: [24-Feb-2023 18:28:59 UTC] PHP Notice: Undefined index: Name in C:\xampp\htdocs\localhost-01\wp-content\plugins\js_composer\include\classes\updaters\class-vc-updater.php on line 129
- but this does not apply to Docket Cache
COMPARISON
Comparing the wp-content of one website and another, I notice the following:
Test website 1 (working)
wp-content
- cache
- docket-cache-data
object-cache.php
docket-cache-data > cachestats.php (content)
timestamp > 1677264492,
size > 23118,
filesize > 723634,
files > 136Test website 2 (not working)
wp-content
- cache
- docket-cache-data
object-cache.php
.object-cache-after-delay.txt (content: 1677263360)
docket-cache-data > cachestats.php (content)
timestamp > 1677263360,
size > 0,
filesize > 0,
files > 0After I deactivate the Docket Cache plugin, changing its name through “wp-content/plugins/docket-cache#####” I can access the website again, which works normally with the plugin deactivated.
In both cases, I left the original settings. I didn’t change anything.
-
This reply was modified 2 years ago by
vipteam. Reason: typo
Hi,
Thank you for your report. From the Test website 1 result, it indicates that Docket Cache works with XAMPP.
For the Test website 2 scenario, I’m assuming it’s related to Transients.
- When activated, Docket Cache will install the object-cache.php drop-in into the wp-content directory.
- Along with object-cache.php, it will create a lock file wp-content/.object-cache-delay.txt to delay the object caching process.
- During the delay period, it will import Transients data from the database into the cache directory (wp-content/cache/docket-cache) with a limit of 5000 data.
- After finishing importing it, it will clear the Transients in the database.
And then it will replace the lock file with the wp-content/.object-cache-after-delay.txt file. - The lock file .object-cache-after-delay.txt is purposely to execute any process (preload/flush) after the delay period and will be removed automatically, which by default is no process unless preloading has been enabled.
The processes stopped at number 5, probably because the XAMPP (Apache/MariaDB/PHP) has been overloaded when Docket Cache created the cache.
If you’ve time, you can try the dev version here https://docketcache.com/devtest/docket-cache-220704-rc1.zip
- Remove wp-content/docket-cache-data, wp-content/cache/docket-cache and wp-content/.object-cache-after-delay.txt manually.
- Place this constant in wp-config.php before activating the Docket Cache.
define('DOCKET_CACHE_TRANSIENTDB', true);
Thanks.
Hi Nawawi, I followed the instructions. I installed the dev version. Unfortunately, TEST WEBSITE 2 (non working) is still dead. However, I see some progress. After installing Docked Cache I can’t access the website: This site can’t be reached. The connection was reset. Below is the Query Monitor Overview, for one page and for the other page, both. TEST WEBSITE 1 (working) Query Monitor > Overview Page Generation Time 0.6486s 0.2% of 300s limit Peak Memory Usage 12,058,816 bytes (11.5 MB) 28.8% of 40 MB WordPress limit 1.1% of 1,024 MB server limit Database Queries 0.0155s Total: 4 HTTP API Calls None Object Cache 93.1% hit rate (54 hits, 4 misses) Persistent object cache plugin in use Opcode Cache Opcode cache in use: Zend OPcache Docket Cache files cache > docket-cache: 169 .php files NOTE: The website works without errors. Everything is fine. TEST WEBSITE 2 (non working) Query Monitor > Overview Page Generation Time 8.0198s 2.7% of 300s limit Peak Memory Usage 52,434,120 bytes (50.0 MB) 9.8% of 512 MB WordPress limit 4.9% of 1,024 MB server limit Database Queries 0.3083s SELECT: 240 SHOW: 4 UPDATE: 9 INSERT: 18 DELETE: 2 Total: 273 HTTP API Calls 4.5430s Total: 11 Object Cache 97.1% hit rate (173,266 hits, 5,208 misses) Persistent object cache plugin not in use Speak to your web host about enabling an object cache extension such as Redis or Memcached. Opcode Cache Opcode cache in use: Zend OPcache Docket Cache files cache > docket-cache: 8 .php files + 1 dump_ .php file docket-cache-data > lock: 2 files docket-cache-data > cachestats.php (content) timestamp > 1677349014, size > 0, filesize > 0, files > 0 NOTE: debug.log does not show anything. NEXT STEPS I don't know if there is a solution for this website. Maybe the website is too heavy and nothing can be done here. Without optimization loading is 15 sec frontend, 30 sec backend/admin dashboard. With Opcache enabled it is shortened to 6 sec frontend/page, 14 sec backend/admin. With Docket Cache, this would be reduced to just a few seconds. I would really like this to work. Is there anything else I can do on my end? Thanks in advance. Regards,
Hi,
Thank you for your response and do test the dev version.
It seems my assumption is not correct, there’s no other solution I can suggest for Test website 2. Maybe it is just too heavy.Thanks.
Hi Nawawi,
You’re right. There is simply no help with this WP Theme that doesn’t work. I deleted all plugins. I left only the Theme and plugins without which this Theme cannot work. This Theme (classified ads with a lot of automation) is simply too heavy.
On the other hand, Docket Cache works great on localhost with XAMPP for any “light and medium” Theme.
Thank you for your friendliness and willingness to help. Regards,
- The topic ‘Docket Cache on localhost with XAMPP’ is closed to new replies.