#1187726-118: Add caching for configuration / rework config object loading (Was: Memory usage and i/o from config objects) introduced the concept of persisting services across kernel reboots, and made the config factory one such service. However, I don't understand why that was needed. Was it for functional reasons? Performance reasons? If performance, for what scenario? Cause kernel reboots are very infrequent operations on a production site.

Starting with a quick patch to see if bot identifies a functional reason.

Comments

Status: Needs review » Needs work

The last submitted patch, service_persist.patch, failed testing.

effulgentsia’s picture

Status: Needs work » Needs review
StatusFileSize
new1.64 KB

Those test failures are easily fixed. What else?

Status: Needs review » Needs work

The last submitted patch, service_persist.2.patch, failed testing.

effulgentsia’s picture

Status: Needs work » Needs review

#2: service_persist.2.patch queued for re-testing.

chx’s picture

Status: Needs review » Needs work

The recent config import switch to config->save() probably deprecated that facility yes. Let's remove it!

effulgentsia’s picture

Title: Clarify why config.factory is persisted across kernel reboots » Remove persistence of config.factory across kernel reboots
Status: Needs work » Needs review

Thanks, chx. What's "needs work" then? I still like the ability to persist services, and we need to do so for synthetic services as part of #1872522: Compiled data in PHP storage is cleared too late in drupal_flush_all_caches(), and maybe down the road will want to do it for non-synthetics like 'database', so I also like the tag. I think all that's needed in this issue is to just not use it for config.factory, which is all #2 does. So, perhaps RTBC? Retitling issue as well.

chx’s picture

Status: Needs review » Needs work

Ah so you don't want the facility to be removed ? fine by me *however* I still leave at NW or it could be postponed perhaps because it conflicts with #1331486: Move module_invoke_*() and friends to an Extensions class. When that goes in, hopefully soon, this can follow.

effulgentsia’s picture

Status: Needs work » Closed (duplicate)