Doing complete cache reset calls OnAfterConfigRead twice

Skip to first unread message

Alexander Obuhovich

Jan 3, 2013, 7:16:29 AM1/3/13
to Bugs In-Portal
When doing a complete cache reset an admin tree sections are rebuilt as well.

However in the process OnAfterConfigRead events are called too resulting code listed there executed once more.

This doesn't do much harm, unless you're adding values to unit config (e.g. adding LEFT JOIN to sql) instead of replacing them. As a result double LEFT JOIN is added causing SQL error.

Dmitry Andrejev

Jan 4, 2013, 12:10:35 AM1/4/13
Easy to fix?


Alexander Obuhovich

Jan 4, 2013, 5:36:33 PM1/4/13
to Bugs In-Portal
Doesn't seem like so.

I can't prevent calling of OnAfterConfigRead events, because new sections can be added from there and existing sections can be altered.

And I can't prevent OnAfterConfigRead execution during regular cache rebuild since I don't know if section cache rebuild will be done after that and before final cache save to database.

Since section cache rebuild can be done on it's own it requires complete unit config rescan, but doesn't save rescan result to database.

You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
Reply all
Reply to author
0 new messages