Caching doesn’t work
-
The plugin doesn’t cache the page. After preloading the cache has 2 files at 144kb. Minify works as it should.
The page I need help with: [log in to see the link]
-
When viewing your site, I get this: https://snipboard.io/o81V9W.jpg
Can you post your php error logs using a tool such as pastebin.com?
Yah, im aware, there were some changes on the XMLs so it’s taking awhile. Try again in an hour or so.
No problem, I will check back later on. Your php error logs would still be useful though (these are normally in the root of your site or you can ask your hosts for them)
Okay, the XMLs are done loading, you may try again now.
When running the preload do you get any error messages such as “unexpected response”
Can you try purging the cache and then another preload.
Once you have done this can you check your wp-content >> cache >> wpo-cache >> horcahome.gz and see how many files you have there?
No, it finishes like it should, except the cache is still empty.
The ftp only shows htaccess and index. Nothing else.
- This reply was modified 1 year, 5 months ago by horecahome.
There are 2 possible reasons why a preload may not complete
1, Your max execution time is set too low. The PHP background process for preloading can only run as long as PHP execution time on the server allows. A common default limit for PHP execution time is 30 seconds; that’s the time a PHP script like the preload is allowed to run, before the server decides it’s been running too long and stops it.
Once the preload process hits the PHP execution time limit, it stops. It will start the next batch of URLs after that.
2. WP Cron – Preloading relies on your site’s cron which in turn relies on PHP page loads in WordPress. iIf there is no activity on WP Admin for some time, the preload would stop being triggered.
To check the health of your Cron, you can use: https://www.ads-software.com/plugins/wp-cron-status-checker/
Can you check both of these?
The execution time is already set on 300.
As for the wp-cron, the site runs XML updates on an hour basis. Even when preloading when using the website, ie changing prices and whatnot on woocommerce it would still not generate the cache.
Can you post your php error log?
Copy pasting from the host event viewer, since I’m on mobile and can’t access the ftp directly.
2023-06-21 14:22:55 Error 79.130.63.206 [client 79.130.63.206] ModSecurity: Warning. Pattern match "^20" at RESPONSE_STATUS. [file "/etc/httpd/conf/modsecurity.d/rules/comodo_free/003_i360_2_bruteforce.conf"] [line "13"] [id "33332"] [msg "IM360 WAF: Failed WordPress login||Name:sutaburosu||T:APACHE||User:z153353old||"] [severity "CRITICAL"] [tag "service_i360"] [tag "noshow"] [hostname "horecahome.gr"] [uri "/wp-login.php"] [unique_id "ZJLdjGfyXIlhvUm1DhpahwAAAV0"], referer: https://horecahome.gr/wp-login.php?interim-login=1&wp_lang=en_US Apache error 2023-06-21 14:24:30 Error 185.138.42.177 500 GET /product-sitemap24.xml HTTP/1.0 WordPress/6.2.2; https://horecahome.gr 448 K Apache SSL/TLS access 2023-06-21 14:24:34 Error 185.138.42.177 AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /var/www/vhosts/22776580291.thesite.link/horecahome.gr/wp-includes/class-wp-scripts.php:378\nStack trace:\n#0 /var/www/vhosts/22776580291.thesite.link/horecahome.gr/wp-includes/class-wp-scripts.php(378): preg_match('|^(https?:)?//|', Array)\n#1 /var/www/vhosts/22776580291.thesite.link/horecahome.gr/wp-includes/class-wp-dependencies.php(137): WP_Scripts->do_item('wc-jquery-ui-to...', 1)\n#2 /var/www/vhosts/22776580291.thesite.link/horecahome.gr/wp-includes/class-wp-scripts.php(688): WP_Dependencies->do_items(Array, 1)\n#3 /var/www/vhosts/22776580291.thesite.link/horecahome.gr/wp-includes/script-loader.php(2068): WP_Scripts->do_footer_items()\n#4 /var/www/vhosts/22776580291.thesite.link/horecahome.gr/wp-includes/script-loader.php(2163): print_footer_scripts()\n#5 /var/www/vhosts/22776580291.thesite.link/horecahome.gr/wp-includes/class-wp-hook.php(308): _wp_footer_scripts('')\n#6 /var/www/vh...' Apache error 2023-06-21 14:28:11 Error 109.178.234.93 404 GET /wp-content/uploads/2017/06/dummy-wood-title.jpg HTTP/1.0 https://horecahome.gr/shop/page/4/ Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Mobile/15E148 Safari/604.1 452 K Apache SSL/TLS access 2023-06-21 14:32:46 Error 103.166.183.192 403 POST /wp-login.php HTTP/1.0 Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 573 Apache SSL/TLS access 2023-06-21 14:32:46 Error 103.166.183.192 [client 103.166.183.192] ModSecurity: Access denied with code 403 (phase 1). RBL lookup of 192.183.166.103.rbl.malware.expert succeeded at REMOTE_ADDR. [file "/etc/httpd/conf/plesk.conf.d/modsecurity.conf"] [line "132"] [id "400010"] [msg "Malware host detected by rbl.malware.expert"] [hostname "horecahome.gr"] [uri "/wp-login.php"] [unique_id "ZJLf3s2IGn40Gg1gTj2mvwAAAcg"] Apache error
Hi,
Would it be possible for you to post your error logs when you have access to FTP?
Ok, turns out there are no php errors, other than a few warnings regarding an unrelated plugin im using.
Using FTP or a file manager of some sort, could you check the following:
–?wp-config.php
?contains?define('WP_CACHE', true);
–?wp-content/advanced-cache.php
?exists, and contains references to WPO (e.g.?WPO_ADVANCED_CACHE
)
–?wp-content/wpo-cache/config/yourdomain-name.com.php exists
All 3 exist and are accessible.
In the settings tab, can you export your settings and upload the file to a service such as WeTransfer and share the link with me?
- The topic ‘Caching doesn’t work’ is closed to new replies.