PHP not Updating for Anonymous Users I have been running a personal dashboard on Drupal 7 for years (currently on 7.69). I rendered the dashboard in Homebox and some of the blocks use PHP (using PHP Filter) to get stock quotes, weather updates, etc.

I recently rebuilt the site in Drupal 8.8.1. I use Panels for the dashboard blocks since there is no Homebox for Drupal 8. I also added the PHP Filter module for my PHP blocks. I'll eventually put my PHP code in modules, but I'm going with PHP Filter for now. I'm using the included Bootstrap theme and caching is set to 'no caching'.

My problem is, everything runs fine when I am logged in as administrator -- the PHP code in the blocks executes every time I do a page refresh. However, when I am not logged in and I do a page refresh as an anonymous user, the PHP blocks do not update. In Drupal 7.69 the page will update for an anonymous user, which is the behavior I want. I've compared permissions between the two installations and everything looks the same. I must be missing something here.

Has anyone else used PHP Filter with Drupal 8 and run into this?
Looking at the code of the PHP filter:

class Php extends FilterBase {

  /**
   * {@inheritdoc}
   */
  public function process($text, $langcode) {
    $result = new FilterProcessResult(php_eval($text));
    $result-&gt;setCacheMaxAge(0);
    return $result;
  }


https://git.drupalcode.org/project/php/blob/8.x-1.x/src/Plugin/Filter/Php.php

it sets already a cache max age of 0, so you only need to remove the page cache for anonymous users by uninstalling the module "Internal Page Cache".