D8: Performance
&
Security

Performance

Backend

Frontend

performance is always about money

Network

Hardware

Software

Data center

DDoS Shield

Hardware 😀

Software

User Analytics

Performance Analytics

Trafic Analytics

Speed up Drupal

Latest Version
CDN
Enable cache
Image optimization + lazy load
404s
Disable & remove unnecessary modules
CSS/JS aggregation
Profile your code, slow php functions log, etc.

Cache system

$build = [
  '#theme' => 'page',
  '#cache' => [
    'tags' => [
      'user:1', 
      'node:2', 
      'custom_tag1'
    ],
  ],
];
$build[
  '#markup' => 'Test tags',
  '#cache' => [
    'contexts' => [
      'url.query_args:search_param',
    ],
  ],
];
$build[
  '#markup' => 'Test max-age',
  '#cache' => [
    'max-age' => Cache::PERMANENT,
  ],
];

26

Security

Principle: Drupal Is Secure; User Input Is Insecure

Security

Links

Founder @

Co- Founder @

Vladyslav Moyseenko, a.k.a vlad.dancer

&

D8 School: Performance & security

By Vlad Moyseenko

D8 School: Performance & security

  • 505