Voting starts in March for the Drupal Association Board election.
No variables used in the script so lower bootstrap level is needed
Related #2023495: Make bootstrap three steps
Not part of CMI
DRUPAL_BOOTSTRAP_DATABASE is gone. Maybe try one earlier?
Let's see, at least cache and database are needed
I'd go with DRUPAL_BOOTSTRAP_PAGE_CACHE for now, which is directly before _VARIABLES, so you don't have to manually include cache.inc and database.inc.
I see no any reason to disturb page cache at all, this works on kernel
The only question is - do we able to override this request by kernel only.
Your question doesn't quite parse for me. Care to rephrase it?
KERNEL works, too.
The question was about ability to override this dumb implementation in contrib to be more performant.
Because better to check that node exists and find some way to protect 'statistics.php'
Ah right. Yes, I expect that some js_alter would let you change the ajax callback to a different route.
Protecting statistics.php might be best done outside of PHP like in .htaccess or similar. But really someone can hit your node page 100 times in a row so it would be natural that statistics.php gets hit 100 times as well. If you don't protect the node page, why would you protect the statistics.php page? DOS protection is best done with Cloudflare, Akamai, etc.
Committed/pushed to 8.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.