Drupal 8.6.11 was hosted on inmotion hosting VPS 2000.
Website visitors / users come only from one country (Turkey), which is far from the server location of inmotion hosting (USA).
Please note in the following statement that I am talking about my PRODUCTION site, not my DEVELOPMENT site.
My project has about 4000 nodes per day and most users (not all) who visit these sites are anonymous users (80% anonymous and 20% authenticated).
The project mainly relied on this node, which their content changes frequentlyIn other words, the site has less than 10 pages like "contact" and "home" which are updated about every three months …
The general idea of the project:
There is a role (ROLE A) that is solely responsible for creating these nodes for anonymous users and sending the links for that node by email or to each user.
In general, each anonymous user has a node created by ROLE A and sends the link of that node to the e-mail address provided by that anonymous user (personally).
The anonymous user then clicks on the email link (eg:
Domainname.com/jerwghfgd4534634hfghrt456gdger4) to access the node created for it.
ROLE A often updates the contents of these nodes in an unknown time:
- 60 seconds after the node creation time.
- 10 minutes after the node creation time.
- 38 minutes after the node creation time.
- 2 hours after the node creation time.
We never know when ROLE A will decide to update the contents of one or more nodes However, the associated e-mail address of the anonymous user receives an e-mail informing you that your node has been updated.
If an anonymous user receives an email about some updates to the contents of his node and he / she visits the node's URL to view these changes, he sees no changes until I (as an administrator) all the cash registers on the website are flashing and Delete caches from cpanel So these changes will take effect.
THE PROBLEM HERE IS SO IMPORTANT ABOUT CACHING …
SOLUTION (to my understanding)
Since these nodes are updated frequently, they should not have caching enabled and also because the entire site is primarily (90%) based on these changes. I believe that no caching system should be enabled for the entire site.
Thinking aloud, I think I have to:
- Disable the Internal Page Cache core module forever.
- Enable the core module Internal Dynamic Page Cache.
- Disable enable caching in my Cpanel -> Cache Manager
the explanation (enable or disable full page caching.) This setting
is useful if you make many changes to your site, but it does
should not be disabled all the time.)
- Install the Cloudflare module (not sure if it's IMPORTANT)
to be installed)
Set up my site on a FREE Cloudflare account with:
_ Caching Level set to no query string
_ Expiration of the browser cache Set to Existing Headers
_ Always online set to ON
_ development mode set to OFF
I use Cloudflare because the server is far away from my visitor site. This will help the cloudflare to almost lose the available latency.
Hello experts … the BIG question:
Is the above explained what to do for the request of my website, or is there another workaround?