-
Notifications
You must be signed in to change notification settings - Fork 45
Feature caching improvements #150
base: master
Are you sure you want to change the base?
Conversation
@euantorano @wpillar can we merge this? Would like to have it merged while working on #147 as atm only some permissions are cached which already confused me. |
use Illuminate\Database\Eloquent\Collection; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class TreeCollection extends Collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a collection of Tree
objects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a collection of objects which can be displayed as tree.
Conflicts: app/Database/Models/AbstractCachingModel.php app/Database/Models/Forum.php app/Database/Models/Post.php app/Database/Models/Role.php app/Database/Models/Topic.php app/Services/Registrar.php composer.json composer.lock
Don't know why it shows all those Also note that this is based on #174 |
More conflicts 😢 |
# Conflicts: # app/Database/Models/Forum.php # app/Database/Models/Post.php # app/Database/Models/Topic.php # composer.lock
Should be fixed but haven't tested it yet |
Though this seems to work now I'd like to improve it a bit as the moderation log page produces quite a lot of queries: |
This is finished now as the moderation log will/should be fixed in #169 @euantorano |
Ok, I'll have a look when I get back from my holiday thanks.
|
I've run |
@euantorano ;) |
# Conflicts: # composer.json # composer.lock
Also fixed #148 as otherwise I wasn't able to cache the forum queries.