#50354 closed enhancement (fixed)
Call opcache_invalidate() after saving PHP files in Theme/Plugin editor
| Reported by: | nextendweb | Owned by: | kirasong |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-dev-note |
| Cc: | Focuses: |
Description (last modified by )
In Theme Editor and Plugin Editor, you can edit PHP file. After you save such file, there should be an opcache_reset() call on the saved file if its extension matches to .php or .phtml.
opcache_reset related ticket for theme/plugin/core update: #36455
Change History (6)
#3
in reply to: ↑ 2
@
6 years ago
- Summary Call opcache_reset() after saving PHP files in Theme/Plugin editor → Call opcache_invalidate() after saving PHP files in Theme/Plugin editor
Replying to mikeschroder:
Hi @nextendweb!
I believe core runs
opcache_invalidate()on files that are written with the plugin or theme editors.
The current patch for #36455 replaces those two calls with the new function we're working on there.
Do you think more needs to be done than that?
Yes, your patch fixes these too.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @nextendweb!
I believe core runs
opcache_invalidate()on files that are written with the plugin or theme editors.The current patch for #36455 replaces those two calls with the new function we're working on there.
Do you think more needs to be done than that?