Fork me on GitHub
Subscribe 3

Ticket #514 (open enhancement)

Cache forum list

  • Created: 2011-10-19 14:52:45
  • Reported by: Franz
  • Assigned to: None
  • Milestone: 2.0-alpha5
  • Component: caching
  • Priority: normal

The forum list on the index page could probably be cached, too, as it is viewed so often.

Of course, this would have to be done on a per-group basis just like we do with the quickjump right now.


Reines 2012-03-05 12:29:49

Is this a duplicate of 364?

Franz 2012-03-05 15:04:43

Not really, as this is a specific task and the other one is a reminder to look for more things to cache - in my eyes wink

Newman 2012-04-14 05:54:25

Please help on this

I have a function that writes all forums info out, including the subforum mod, but i just need to know how to left jjoin that data on last_post

Comment edited 1 times (Diff)

Franz 2012-08-26 23:13:31

  • Milestone changed from 2.0-alpha5 to 2.0-alpha1.
  • Owner set to Franz.

Franz 2012-08-27 21:55:15

Commit 324f56b to core master

#514: Cache category/forum list on a per-group basis.

Franz 2012-08-27 22:31:53

Done in a very basic form. It's simple, however not perfect: the category and forum data are very unlikely to change, while data about the last post might change every few minutes.

Thus, my idea would be to first cache all category and forum data, and then manually retrieve all recent information for each of these cached forums.

Sadly, this is not yet easily possible with Laravel (cache the long-term objects and then eagerly load the last post info), but I'm trying to urge Laravel's creator to make this possible. It would be awesome.

Franz 2012-08-30 13:20:50

  • Milestone changed from 2.0-alpha1 to 2.0-alpha5.

Actually, it makes sense for this to wait. Some cool features that would be helpful are still missing in Laravel, and the data structures aren't yet finalized.

Franz 2012-08-30 13:20:55

  • Owner Franz removed.

Franz 2012-08-31 20:17:40

Commit 48382f0 to core master

#514: Cache forum permissions (per group) and categories instead of forums.