Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress How to Build a WordPress Plugin Building a WordPress Plugin Settings Page CRUD with the WordPress Options Table: Part 2

Plugin options page not updating...?

I'm having a frustrating issue as I work through this WordPress Plugin course: When I make changes to the plugin files, they don't always show up right away on the admin options pages. It's like things are being cached or something.

I'm working locally with MAMP 3.0, in case that has something to do with it.

It makes it tough to tell if I'm doing things right when my changes don't show up. It seems like if I wait long enough, something like 30 seconds to 1 minute, then my changes will get picked up, but sometimes the changes show up right away.

Has anyone else experienced this?

1 Answer

I think I figured out the answer. I dug into MAMP's PHP settings and noticed that OPcache is enabled by default. I turned that cache setting to "off" and things seem to be working as expected now.

If things get slow and I want OPcache turned on, I also found the OPcache Dashboard plugin, which looks handy.