On Wed, Nov 9, 2011 at 2:35 PM, Stephan Gambke s7eph4n@gmail.com wrote:
Hi,
I'm looking for a hook that is called when the text of an article is parsed because of a cache miss.
What are you trying to accomplish with a hook that's called during (before? after?) parsing that comes after a parser cache miss specifically?
Keep in mind that the same article may be parsed with different configurations (thus separate cache keys) or may not get cached at all. It also gets pre-rendered at default settings before we even check the cache during saving -- would this count as a cache miss?
There may be a better way to do what you're actually trying to do.
- There seems to be no elegant way to recognize if the text to parse is
the actual Article content.
You generally should not make such assumptions as, indeed, many bajillions of things may get parsed, plenty of which are not standalone articles or pages.
-- brion