Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.

Earliest code injection for caching

edited September 2007 in Vanilla 1.0 Help
I'm thinking about a very simple cache system for Vanilla. That's why I'd like to inject some code at the earliest stage of the execution.
First let me tell you that I'm still discovering the inners of our forum engine... so I may say silly things.

So, noobily, I looked for the earliest place where I could do a delegate call.
After some investigations, it appeared that:
If I want to write my cache thing in an extension, its code must be read, so the delegate call must be after
in appg/init_vanilla.php
and even after a call to GetDelegatesFromContext() that we see few lines after.

My questions:
- to me, too much processing is done before the extensions inclusion (instanciating page objects, js and css inclusion, session handling...), is there a good reason to include extensions after those actions ?
- how to inject code as early as possible, without changing the core files and break the actual extension philosophy ?

EDIT: with my VeryFirstDelegate, I need a VeryLastDelegate ;)
EDIT EDIT: VeryLastDelegate seems to be PostRender in the PageEnd class
This discussion has been closed.