Cache not caching, huh?!

I added this:

return [
  'cache' => [
      'pages' => [
          'active' => true,
          'ignore' => function ($page) {
            return $page->title()->value() === 'Do not cache me';
          }
      ]
  ]
];

to my config.php - but I do not see anything appearing in my /site/cache/ folder. What could be going wrong? It seems so simple that I don’t know where/how to troubleshoot. :unamused:

1 Like

Did you add this as a separate return statement? Note that all your config options need to be within one return array.

2 Likes

You are probably the fastest and most effective support person I’ve ever seen… <3

6 Likes