Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a site is configured to have an apc cache or an opcache and they have configured their servers to not check the timestamps of files, new files placed on the filesystem will be ignored by the webserver.
https://symfony.com/doc/current/performance.html#don-t-check-php-files-t...
We'll need a mechanism that determines if this is the case and ensures the caches get flushed.
Comment | File | Size | Author |
---|---|---|---|
#9 | 3088474-9.patch | 6.77 KB | heddn |
| |||
#9 | interdiff_6-9.txt | 3.17 KB | heddn |
Comments
Comment #2
heddnWe can do a check during update and clear opcache, apc(u) cache if said things exist. Updates run via a button right now. So that will be fine for the most part. For eventually when drupal cron can be run via non web UI, we'll have to add a readiness checker to say it isn't possible. Because clearing apc/opcache via CLI wouldn't flush web.
Did I miss anything in this summary?
Comment #3
heddnSee https://symfony.com/doc/current/performance.html#don-t-check-php-files-t... for some laymans explanations of our options to clear cache.
Comment #4
MixologicAnd also,
So, there should probably be a mechanism to either detect or just clear the cache regardless of the setting when new files get deployed.
Comment #5
MixologicComment #6
heddnComment #7
heddnI'd be curious if we even need apc support in this patch. From my poking around, it seems the opcode cache parts of apc where removed before PHP 5.6. Can someone confirm?
Comment #8
MixologicOh, I meant for this to be an "in general" not a version specific. For 8.x you dont need to worry about the apc cache. Its for 7.x on older php's.
Except, this is just where I've been in php for so long I forgot when apc switched to opcache, so 5.5 and above is all opcache. Or rather, not worth supporting an "autoupdates" feature for somebody on a php version that hasnt had support for 4+ years.
Comment #9
heddnUpdating title. The d7 module starts its support from php 5.6+. So it sounds like we just need to support opcache.
Comment #11
heddnThanks for the input @Mixologic. Incorporated and committed.