rainelement
Forum Replies Created
-
Hi!
I appreciate the quick response and I am happy about your positive feedback, just sent an email back to you.Hi SPC Team,
Following up on my previous inquiries regarding Worker Mode and using the SWCFPC_CF_WORKER_FULL_PATH constant.
Progress & New Findings:
- Custom Worker Script IS Being Deployed to Cloudflare:
- After some investigation, including temporarily modifying plugin PHP files to correct an internal typo from swcfpc_cf_woker_enabled to swcfpc_cf_worker_enabled, and ensuring my wp-config.php has define(‘SWCFPC_CF_WORKER_FULL_PATH’, ‘/actual/path/to/my/custom_merged_worker.js’); correctly set, I can confirm that when I toggle “Enable Cloudflare CDN & Caching” OFF and then ON in the plugin settings, new Worker services are created in my Cloudflare account (“Workers & Pages”).
- The code within these deployed Worker services is correctly my custom merged script (which integrates your worker_template.js with my specific cache key modifications). I have seen multiple instances created from repeated toggles.
- HTTP Route Creation is FAILING:
- Despite the Worker scripts being deployed to Cloudflare, none of them are having an HTTP Route (e.g., *.example.com/*) successfully assigned to them by the plugin. They only possess their default *.workers.dev routes and thus are not active for my main domain.
- My WordPress Query Monitor captures a failed API call when the plugin attempts to enable caching:
POST https://api.cloudflare.com/client/v4/zones/%5BMY_ZONE_ID%5D/workers/routes results in a 400 Bad Request. - The Cloudflare error typically associated with this (from previous generic testing of such scenarios) is often (err code: 10007) This Worker does not exist on your account. This error occurs when attempting to create a route for a worker script name that Cloudflare cannot find or does not recognize as existing for that zone.
- Database Option:
- To ensure the plugin recognized the (now correctly spelled) swcfpc_cf_worker_enabled flag, I also had to use a PHP snippet to directly update the corresponding key in the plugin’s swcfpc_config option in the database to an “enabled” state, as the UI did not seem to save this correctly after the PHP file typo corrections.
Current Situation:
My custom Worker script is being successfully uploaded to Cloudflare by your plugin when triggered. However, the crucial subsequent step of your plugin creating an HTTP Route to direct traffic from example.com to this deployed worker is failing.Request:
- Could you please advise on why the POST …/workers/routes API call might be consistently failing with a 400 Bad Request (likely due to error 10007, indicating the worker script name used in the route creation call doesn’t match an existing script)?
- Is there a specific internal naming convention or process the plugin uses for the Worker script name during deployment that might differ from what it then tries to reference when creating the route, especially when SWCFPC_CF_WORKER_FULL_PATH is active?
- Are there any other plugin settings or known conditions that could interfere with successful route creation by the plugin?
I am using a correctly permissioned Cloudflare API Token for the connection (with Workers Scripts: Edit, Workers Routes: Edit, Zone: Read, Cache Purge, etc., for the specific zone). My example.com zone is correctly selected in your plugin settings.
Thank you for your assistance in resolving this route creation issue to get Worker mode fully operational with a custom script.
I found the email in the spam section and replied right away. Thank you!
Hi Sybre,
Hope all is good and I wish you a nice, calm week ahead!
I just sent an email to you yesterday with the public URL.
Thank you in advance for your time!Dear Sybre,
I hope you could assist us with this as our website is entirely with missing SEO for some reason.
I can provide access to the website if needed. Thank you so much!Dear Oleg,
Thank you for letting me know. I already created a support there, but waiting for a response. I hope they will respond with a more specific javascript code which I can implement via code snippet or by duplicating the plugin’s files in the child theme folder.
All the best to you all!Forum: Plugins
In reply to: [GeoTargeting Lite - WordPress Geolocation] Display Visitors CountryDear Damian,
Everything works great, I just saw another new plugin update and everything is ok.
Thank you for your time and support!
Forum: Plugins
In reply to: [GeoTargeting Lite - WordPress Geolocation] Display Visitors CountryFor some reason it doesn’t work.
I cleared all cache to make sure there is no old information.
I tried it exactly like this:[geot country=”Bulgaria”] Cristiano Ronaldo is the best! [/geot] – This one works.
These do not:
The user country is [geot_country_name]
Current user is located in [geot_country_name]
Current user country code is [geot_country_code]I confirm that I’ve updated the plugin.
Thank you for supporting me in this situation.
Forum: Plugins
In reply to: [GeoTargeting Lite - WordPress Geolocation] Display Visitors CountrySuch update is great! Thank you for being so fast with the implementation.
However I am struggling to understand how to use the shortocodes for the particular task. Could you please give us an example?
Or if there is a documentation where I can take a look would work great as well.
Forum: Plugins
In reply to: [Autoptimize] Best scenario for Aoptimize and CloudflareSounds great!
In such case I will use Aoptimize as advised by CommerceGurus and then activate APO without css/js/html minifaction on the CloudFlare settings.
Thank you Frank for the very quick reply, it is always great to speak to you!
During the night your colleagues from Siteground support managed to help me – it was the UltrafastPHP version causing the issue.
This is now resolved, much appreciated.
Dear Hristo,
Thank you so much for the early and quick reply!
The issue only happens when I open the website via Internet Explored. I wanted to test how the website loads on this browser.
I do believe it could be the browser itself and not a caching issue.
Thank you once more.
Thank you Hristo, I will do so and hopefully the default cron isn’t an issue.
Hi Stoyan,
Thank you so much! I actually just did few test as well and everything is OK, I will pay attention in the next day as well.
So in such case I can consider that the SGO plugin is setup correctly, memcache and dynamic cache are both active, Minify through CloudFlare.
Your help is massive to me, thank you all guys!
Dear Hristo,
I followed your advise and activated full page caching via the SGO plugin for CF.
Could you please see the GTMetrix result – https://ibb.co/2ghnXsQ
The columns are as follow:
1. Green – old settings, no CF full caching
2. Blue – Activated Full Page Caching via SGO – right away very good score!
3. Orange – Retested after 5 minutes – very bad score
4. Red – Retested again after 5 minutes – slightly better, still worse than the first column with no CF full facheNo cache has been cleaned at all between these tests. The hits and inspect element all show correct information in browser incognito check.
Should I be worried about this, am I doing something wrong?
Thank you so much for your time! I wish you a great weekend ahead.
- Custom Worker Script IS Being Deployed to Cloudflare: