cuongpham259
Forum Replies Created
-
Hi @giuse
Thanks for the thorough explanation. But it’s true that it’s appear tricky.
I posted this question because I encountered this situation.
I want to use a Plugin to load related articles in an “category”I can’t display this list, because before displaying the content using the Plugin, No value “term_id” is passed in. So it will return empty.
Or in a specific post, related posts cannot be displayed without the passed “post_id” and “term_id” values.
I have tried with custom php code in the past, but code not working. This hook is clearly a lifesaver for future solutions.
Hope you can make it simpler with the paid version, more documents updated in the future.
Thank Jose
- This reply was modified 2 years, 6 months ago by cuongpham259.
Found the cause. JetEngine has a function called “Data Store”, if it is set to save in Session or Cookie, the first access will be BYPASS.
I can temporarily switch to saving in Metadata, but hopefully you can modify it in the future to ignore it, because there are things that only need to be saved in one sessionβ¦
Thanks a lot!
Hi @isaumya
Everything seems fine, however I discovered a strange phenomenon with JetEngine Plugin v3.2.6
If I activate the plugin. Accessing the page for the first time is always cf-cache-status: BYPASS. Then there will be MISS and then HIT.
That means instead of accessing it the first time to create the cache, you now have to access it twice.
This is quite new, I can’t create a dev site for you to test because JetEngine requires a license π
- This reply was modified 2 years, 7 months ago by cuongpham259.
Update:
It seems the problem was just a late delivery. It takes 15-20 seconds for the Cache to be cleared and updated. I tested it on another website, it delivered immediately.
It seems like I installed something on the Cloudflare website without remembering, causing the cache clearing process to be delayed π
Hi @isaumya
I just discovered a problem with my current website. This is the LOG
[2023-10-19 01:21:44] [cache_controller::purge_cache_queue_job] I’m the purge cache cronjob
[2023-10-19 01:21:44] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 34962 and related contents – Fired action: clean_post_cache
[2023-10-19 01:21:45] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
[2023-10-19 01:21:45] [cache_controller::purge_cache_queue_job] Cache purging completeHowever, the cache is not actually cleared. It only deletes when I use the button in the plugin.
Currently the function “Automatically purge single post cache when a new comment is inserted into the database or when a comment is approved or deleted” does not work.
How to investigate the cause?
I changed the theme and disabled all plugins. There’s no conflict, just the function doesn’t work.
Hi @isaumya
Thanks for the suggestion.
I tried using custom code with HOOK before you mentioned it. However, it did not work at that time.I just reviewed the code, and asked ChatGPT, now it works.
Using HOOK is many times faster than setup in Plugin.Thanks for your help.
Have a nice day!- This reply was modified 2 years, 7 months ago by cuongpham259.
Hi @isaumya
I have a php site in a subfolder, so turning on Varnish helps a lot.
If I remember correctly there is a php file specifically for varnish. Are there any suggestions to fix the code without calling the Urls related to the $url being removed?
Hi @isaumya
Okay, it’s pretty simple. If everything works as expected. I will share again with the community. Just need more time to know that there is no implicit conflict here.
As a temporary solution, I would reset the default wp-json. It works fine now for both login and non-login.
The temporary problem has passed. Thanks for helping
Have a good day!
Hi @isaumya
Sorry for the late reply, I saw the doctor for 2 days.
You are correct, the speed for the logged in person depends on the actual server. But WP Rocket has a function to create a cache for logged in users, I have used it in the past and it is quite good.
Currently, I know that Super Page Cache for Cloudflare only supports parallel use with WP Rocket by banning WP Rocket from using Cache to avoid conflicts. However I had a couple of ideas and tested it out.
After adding some customization. The good news is that Super Page Cache for Cloudflare can now be used with non-logged in users and HTML cache with logged in users via the WP Rocket plugin. This is just the initial result, more time is needed to monitor and evaluate the results.
As for the “wp-json” problem. Because I use Security Plugin change wp-json = api-json. So will get an error like the case I described. So is there a way to customize the output of the json?… Hope there is an easy way to do this.
Thank you for supporting!
- This reply was modified 2 years, 10 months ago by cuongpham259.
Hi @isaumya
You are correct, it looks like the Everything Page Rules Cache is corrupting the .html cache. The site is now working as expected.
Thank you!
I have 1 question. Is it possible to combine Super Page Cache caching for Cloudflare and WP Rocket?
Currently the speed for non-logged in users is super fast. But for logged in users it is quite slow.
I want to leverage WP Rocket storage for logged in users, disable caching for non-logged in users in both plugins to avoid conflicts. Website distributes cache from cloudflare CDN and static html file from WP Rocket to logged in users.
This is possible?
Hi @isaumya
- Yes. I enabled wp-json settings, which is weird.
https://prnt.sc/24j3NoDhArvy - Here are some pictures you need:
Page rule only 1 setting Cache Every thing: https://prnt.sc/iq_dCLOYG07m
Cache Rule: I imported from your tutorial. And create 3 more Roles to make sure the cache is not cached https://prnt.sc/VLrjP6GQ_HUj
https://prnt.sc/MxF1-tE0Db_X, https://prnt.sc/xbyYdqRzPOYr, https://prnt.sc/OT0crU1PjHsk.
SPCFC Cache Rule β Cache Eligible Requests same as the settings from the tutorial, so I won’t upload pictures here.
Also Browser Cache TTL = Respect Existing Headers. This setting has been around for a long time. https://prnt.sc/S4BPRg6gaQ7Q
I don’t understand why the page .html is being cached, all my posts add .html at the end of the url π
Hi @isaumya
Thanks for the reply.
I have installed wp-json. But the API error only updates the data once. Despite the announcement “Post view updated successfully” is displayed. But the value will not be + added to the Meta “View”
Of course, when logged in, this function works normally.
There is one more strange problem.
I have created some CPTs with urls appended .html at the end. Although logged in, these posts are still saved in cloudflare, still valid HIT.
For normal pages without the .html value, Dynamic will be displayed. this parameter issue is not removed on login.
How to configure ignore it?
Thanks a lot!
Hi @giuse
Sorry for the late response, I’ve been very busy lately.
That’s bad news with the Domain Map Plugin. Thank you for doing all you can.
I still don’t have a solution with Zender. Because the development team update a lot recently.
I will check again next week. If the problem is resolved I will notify you.
Have a great day!
Forum: Plugins
In reply to: [Cache Warmer] Some problems with the plugin.Hello @tmmtechnology
Thanks for the feedback & sending detailed instructions.
I apologize for the late response. I’ve had some work to do in the last few days.
Logs are still working, I checked and see Cache file is generated. But not showing the statistics table in the plugin.
I sent you an email, you can check it.
Thanks so much for the support!
Hi @giuse.
Thanks for the tutorial, I’ll send a support ticket to Zender.
All attempts fail at this point!- This reply was modified 2 years, 11 months ago by cuongpham259.