I'm toying with the idea of caching the permissions, that is load them all up and their permission from table into memory and keep them there. So it doesn't have to hit the database every time. The good thing is there're only 200 pages and not 2,000.
On Nov 1, 3:53 pm, swartz <netv...@gmail.com> wrote: > What I've done so far is to use around_filter with process_page from > SiteController. > But I find that the login in this overwritten method is expensive as > it has to run and hit the database for every page. > Just seeing if there're better ways to do this.