[TYPO3] Cached output, but need to increase field in DB

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Apr 2 16:54:08 CEST 2007

Matthias Stuebner wrote: on 02.04.2007 16:20:

> I have the request to count access on a cached page, and I miss any idea
> who to do so.
> The database holds a field "pageviews" and that field is incremented with
> each not-cached access, but of course it isn't if the page is in cache.
> Is there any option to reach the goal that I missed, or do I need to put a
> second USER_INT extension of that page to increment that counter?
> Any additional hints?

Yes, USER_INT is the key here to the solution. The page will remain
"cached", only your counter will be called on each hit. Has the
disadvantage that TYPO3 needs to load its framework on every hit, but at
least it just will need to render your USER_INT output and not the whole


More information about the TYPO3-english mailing list