Cache Preload for Query Strings not working
-
Hey Team,
we need to cache and preload the variation urls like (fitgrade.ch/protein-eiweiss/body-attack-protein-donut/?attribute_pa_groesse=21-x-60g&attribute_pa_geschmack=blueberry)
I’ve already enabled “Cache URIs with query string variables” on Redis using sitemap preload. The Sitemap includes every possible url variation for cache preloading in a variation sitemap generated by YOAST (fitgrade.ch/product_variation-sitemap1.xml).
Product URLs without ?attribute get preloaded and served perfectly.
Product URLs with ?attributes are getting preloaded but are not served fast.
I tried changing to Disk Cache to check if its a redis problem. Without success. The ?-urls get preloaded but they dont seem to be served. If I hit an ?-url manually the page gets cached and gets served fast it should. Only the preload doesnt work properly.
Is there any fix to make the preload work on ?attributes or is this a known bug?
Thank you so much!
-
Hello @digitalkult
Thank you for your inquiry and I am happy to assist you with this.
Let me check on this and I’ll get back to you.
Thanks!Thank you very much for the quick reply ?? looking forward to any hint you can give us.
Hello @digitalkult
While we are performing the tests, logging is available in wp cli, I suggest that instead of calling wp cron via crontab – you should call it directly via
wp w3-total-cache pgcache_prime
and track the output which pages/sitemap positions are primed by script.
Thanks!Hey Marko,
pages primed by the wp-cli command load perfectly fine.
$ wp w3-total-cache pgcache_prime
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘fmp_remove_catalog_ordering’ not found or invalid function name in /var/www/vhosts/fitgrade.ch/httpdocs/wp-includes/class-wp-hook.php on line 287
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘fmp_remove_catalog_ordering’ not found or invalid function name in /var/www/vhosts/fitgrade.ch/httpdocs/wp-includes/class-wp-hook.php on line 287
Priming from sitemap /sitemap_index.xml entries 1301..1350
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=banana-cream&attribute_pa_groesse=450g-beutel
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=white-chocolate&attribute_pa_groesse=2300g-dose
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=vanilla-ice-cream&attribute_pa_groesse=2300g-dose
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=schoko-haselnuss&attribute_pa_groesse=2300g-dose
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=rocky-road&attribute_pa_groesse=2300g-dose
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=french-vanilla-cream&attribute_pa_groesse=450g-beutel
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=extreme-milch-chocolate&attribute_pa_groesse=450g-beutel
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=double-rich-chocolate&attribute_pa_groesse=450g-beutel
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=delicious-strawberry&attribute_pa_groesse=450g-beutel
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=cookies-and-cream&attribute_pa_groesse=450g-beutel
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=white-chocolate&attribute_pa_groesse=450g-beutel
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=double-rich-chocolate&attribute_pa_groesse=908g-dose
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=cookies-and-cream&attribute_pa_groesse=908g-dose
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=haselnuss&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=pistazie-kokos&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=french-vanilla-cream&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=extreme-milch-chocolate&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=melone&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=latte-macchiato&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=himbeere&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=banane-joghurt&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=apfel-zimt&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=ananas&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=weisse-schokolade&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=schoko-cocos&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=natur&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=schoko-cocos&attribute_pa_groesse=2350g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=french-vanilla-cream&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=extreme-milch-chocolate&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=erdbeer&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=erbeer-weisse-schokolade&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=dark-equador-chocolate&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=cookies-and-cream&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=pistazie-kokos&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=natur&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=melone&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=latte-macchiato&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=himbeere&attribute_pa_groesse=900g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=haselnuss&attribute_pa_groesse=500g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=weisse-schokolade&attribute_pa_groesse=2350g
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=chocolate-peanutbutter&attribute_pa_groesse=908g-dose
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=himbeere&attribute_pa_groesse=2350g
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=white-chocolate&attribute_pa_groesse=908g-dose
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=vanilla-ice-cream&attribute_pa_groesse=908g-dose
Priming https://fitgrade.ch/protein-eiweiss/optimum-nutrition-100-whey-gold-standard-2300g-dose/?attribute_pa_geschmack=schoko-haselnuss&attribute_pa_groesse=908g-dose
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=cookies-and-cream&attribute_pa_groesse=2350g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=banane-joghurt&attribute_pa_groesse=2350g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=apfel-zimt&attribute_pa_groesse=2350g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=ananas&attribute_pa_groesse=2350g
Priming https://fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=pistazie-kokos&attribute_pa_groesse=2350g
Success: PageCache Priming triggered successfully.Is it possible that the pages triggered by the cronjob without cli are primed differently?
Thank you in advance
$ wp w3-total-cache pgcache_prime
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘fmp_remove_catalog_ordering’ not found or invalid function name in /var/www/vhosts/fitgrade.ch/httpdocs/wp-includes/class-wp-hook.php on line 287
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘fmp_remove_catalog_ordering’ not found or invalid function name in /var/www/vhosts/fitgrade.ch/httpdocs/wp-includes/class-wp-hook.php on line 287
Priming from sitemap /sitemap_index.xml entries 1301..1350
Priming fitgrade.ch/protein-eiweiss/ironmaxx-100-whey-protein/?attribute_pa_geschmack=natur&attribute_pa_groesse=500g
”
”
”
Success: PageCache Priming triggered successfully.Hey Marko,
pages primed by the wp-cli command load perfectly fine.
Is it possible that the pages triggered by the cronjob without cli are primed differently?
Thank you in advance
Hello @digitalkult
Thank you for the information and I am glad to know it works!
There is not supposed to be any different. However wp-cron is not reliable very much for cache priming, so if wp-cli does the job, you should continue with it.
Thanks!Hey Marko,
is there a way to schedule the cache priming on wp-cli base? i wont be apple to prime the cache manually every time on command line ??
Best regards
Hello @digitalkult
YOu can setup a d custom cronjob on your server and call wp w3-total-cache pgcache_prime every X hours.
Thanks!Thank you again ?? I will try to do so. Best regards and thank you for the support
Hello @digitalkult
You are most welcome!
We would really appreciate it if you could take a minute and post a review?here. This will help us to continue offering a top-notch product to users.
Thanks!
- The topic ‘Cache Preload for Query Strings not working’ is closed to new replies.