My Life Flashing Very Slowly Before My Eyes

Consent
AUTHORIZATION FOR CREDIT DASHBOARD
You're only one short step away from viewing your free FICO® Score and Credit Dashboard.

Before we can provide it to you, we need your OK to obtain your credit information. Please make sure to read the Authorization language below and click to agree.
And don't worry, you can view your FICO® Score and Credit Dashboard as often as you like. It won't impact your score.

Drupal 8 caching is awesome. I get it, and thank you to the community for that awesomeness.

For those of you wondering why your PHP code (probably entered into a block or a node using the PHP Input Filter) will not execute without clearing the cache in-between runs, this information is for you.

Early in Drupal 8 beta we were able to do things like set a block as non-cacheable. But as D8 development progressed that notion went away. Now you can make modules with awesome cache tagging and invalidation. But what you can't do is include PHP code in content using the infamous PHP filter and then have it execute on every page load. Caching won't run the code a second time the user loads your page.

Tags:

I have to admit, I'm partially writing this post just to see in my analytics reporting how many people are searching for it. But for those that are trying to wedge PHP into Drupal8 and having trouble with it, there is something here for you.

The PHP Filter has been moved out of core and is now a contib module. It was also not working during the release-candidate phase of Drupal 8, but seems to be back on track now. Sometimes people like to do crazy things like create a Panels page at a certain URL and then enable the PHP text filter. If you're slick you might do an include() or an include_once() command and call your scripts from a directory where they can be managed in a code repository and such.

But it's a drag creating a huge Panels page, with all its features, just to call an include() command. And you have to create a Panel for each path (or route) you want to bring into existence. This is pretty heavy for just having a route to call a script.

Tags:

EA used to stand for Electronic Arts, and back in the Amiga days there really wasn't much quality software available. But Electronic Arts supported the platform and spent a lot of resources marketing to that community, probably not turning a profit on that user base. But their motto was "We See Farther" and I respected that.

IBM used to have a simple motto of "THINK."

Once I had a co-worker that tried to express her opinion regarding a client matter as this: Once it's broken, if it's not broken, don't keep fixing it. Some people just think differently.

Tags:

Try the following code, and for those of you programmatically migrating users across from an old site, note that you can set the new user's ID to whatever you want! You don't have to let the system auto-assign the next-available number according to the database. And when you go back to creating users "the normal way" it will resume with the next number after the highest you've assigned. Pretty cool!