How can I tell if previewgenerator is working?

Nextcloud version (eg, 20.0.5): 24.0.5
Operating system and version (eg, Ubuntu 20.04): CentOS 8
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.37
PHP version (eg, 7.4): 7.4.3

The issue you are facing:

I can’t tell if previewgenerator is working. I followed the instructions here https://rayagainstthemachine.net/linux%20administration/nextcloud-photos/ yet when I use the nextcloud app on my android phone, even if it is on a wifi network on the same LAN that my nextcloud server is hardwired to, images load very very slowly when clicking onto a folder filled with images.

I set the thumbnails to the small sized stated in the guide. I tried lowering jpeg quality to 50, and preview max to 1024, and then 512. When I enter a folder with a bunch of images in the nextcloud android application, my bandwidth meter on my device shows almost no downstream bandwidth being used. However, if I run top on my nextcloud server, you will see dozens of php processes taking 100% CPU pop up.

This leads me to believe that it is not fetching pre-created thumbnails, but trying to create hundreds of them on the fly. How can I check if it is actually creating/using previewgenerator created previews? My goal is for the nextcloud application on my android phone, when I enter a folder filled with images, to immediately populate with pre-created thumbnails of very low quality/filesize so that load time is closer to instant. The server is a xeon with a 10,000 cpubenchmark score, 32 GB of RAM, and an SSD for the OS & storage on a gigabit line.

This is my config.php, with certain elements redacted:

<?php
$CONFIG = array (
  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' =>
  array (
    0 => '127.0.0.1',
    1 => 'REDACTED',
    2 => 'REDACTED',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '24.0.5.1',
  'overwrite.cli.url' => 'https://127.0.0.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'REDACTED',
  'mail_domain' => 'REDACTED',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'REDACTED',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'REDACTED',
  'mail_smtppassword' => 'REDACTED',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'enable_previews' => true,
    'enabledPreviewProviders' =>
    array (
      0 => 'OC\\Preview\\TXT',
      1 => 'OC\\Preview\\Markdown',
      2 => 'OC\\Preview\\OpenDocument',
      3 => 'OC\\Preview\\PDF',
      4 => 'OC\\Preview\\MSOffice2003',
      5 => 'OC\\Preview\\MSOfficeDoc',
      6 => 'OC\\Preview\\Image',
      7 => 'OC\\Preview\\Photoshop',
      8 => 'OC\\Preview\\TIFF',
      9 => 'OC\\Preview\\SVG',
     10 => 'OC\\Preview\\Font',
     11 => 'OC\\Preview\\MP3',
     12 => 'OC\\Preview\\Movie',
     13 => 'OC\\Preview\\MKV',
     14 => 'OC\\Preview\\MP4',
     15 => 'OC\\Preview\\AVI',
     16 => 'OC\\Preview\\JPEG',
     17 => 'OC\\Preview\\JPG',
    ),
'preview_max_x' => '1024',
'preview_max_y' => '1024',
'jpeg_quality' => '50',
);

I fixed it by erasing everything and starting from scratch with a clean install.