Page not caching

Hi,

I have a one page site set up with Kirby, where the content for the homepage is actually stored in site.txt.

I have the following in my domain-specific config file:

<?php

  return [
    'debug' => false,
    'environment' => 'staging',

    'email' => [
      'transport' => [
        'type' => 'smtp',
        'host' => 'smtp.mailtrap.io',
        'port' => 25,
        'security' => 'tls',
        'auth' => true,
        'username' => '*****',
        'password' => '*****'
      ]
    ],

    // Page caching - enabled on staging site
    'cache' => [
      'pages' => [
        'active' => true
      ],
    ],
    
  ];

?>

But when I load the site the cache files are not being generated. I get a pages directory but it stays empty.

Is the issue that I am saving the content in site.txt rather than the home.txt file?

It has nothing to do with where your content is stored. But maybe the page is not cacheable for some reason, check the documentation: Caching | Kirby CMS