Skip to content

149 View cache#178

Merged
armanist merged 13 commits into
quantum-php:masterfrom
Vahram1995:master
Dec 2, 2024
Merged

149 View cache#178
armanist merged 13 commits into
quantum-php:masterfrom
Vahram1995:master

Conversation

@Vahram1995

Copy link
Copy Markdown
Collaborator

No description provided.

@armanist armanist left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First please look at scrutinizer issues and fix them.

The library uses code PHP functionality, but instead it should use every available functions from framework.

The approach of storing ttl into the content is not desirable

serializing the content can lead potential problems

Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Mvc/MvcManager.php Outdated
Comment thread src/Mvc/QtView.php Outdated
Comment thread src/Router/Route.php Outdated
Comment thread src/Router/Route.php Outdated
Comment thread tests/unit/_root/shared/config/config.php Outdated
@Vahram1995 Vahram1995 requested a review from armanist November 15, 2024 14:42
Comment thread src/Router/Route.php
Comment thread tests/unit/Libraries/ResourceCache/ViewCacheTest.php

@Arno2005 Arno2005 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the missing doc blocks and remove duplicate unit tests.

@armanist armanist left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still several unresolved points, but first check the scrutinizer

Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Mvc/MvcManager.php Outdated
Comment thread src/Mvc/QtView.php
Comment thread src/Router/Route.php Outdated
Comment thread src/Router/Route.php Outdated
Comment thread src/Router/Route.php Outdated
@Vahram1995 Vahram1995 requested a review from armanist November 27, 2024 09:52
Comment thread src/Console/Commands/ResourceCacheClearCommand.php
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Console/Commands/ResourceCacheClearCommand.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Mvc/MvcManager.php Outdated
Comment thread src/Mvc/MvcManager.php Outdated
Comment thread src/Mvc/QtView.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php
@Vahram1995 Vahram1995 requested a review from armanist November 27, 2024 13:17
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Mvc/MvcManager.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Router/Route.php Outdated
Comment thread tests/unit/Libraries/ResourceCache/ViewCacheTest.php
@Vahram1995 Vahram1995 requested a review from armanist November 28, 2024 09:58
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Router/Route.php Outdated
Comment thread tests/unit/Libraries/ResourceCache/ViewCacheTest.php Outdated
Comment thread src/Router/Route.php Outdated
Comment thread src/Router/Route.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
@Vahram1995 Vahram1995 requested a review from armanist November 29, 2024 15:16

@armanist armanist left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest changes introduced some inconsistencies..

The ttl property of ViewCache is set from Route class while isEnabled is set from Router class.

We need to keep consistency on similar operations applied on same object.

It's obvious now that these both things (ttl and isEnabled) should be set from Router class after the current route is known. Therefore there would no need of passing ViewCache instance to Route class anymore.

Comment thread src/Mvc/MvcManager.php Outdated
Comment thread src/Mvc/QtView.php Outdated
Comment thread tests/unit/Libraries/Session/SessionDatabaseTest.php
Comment thread src/Libraries/ResourceCache/ViewCache.php
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread tests/unit/Libraries/ResourceCache/ViewCacheTest.php Outdated
Comment thread src/Libraries/ResourceCache/ViewCache.php Outdated
Comment thread tests/unit/Router/RouteTest.php Outdated
Comment thread src/Router/Router.php Outdated
@Vahram1995 Vahram1995 requested a review from armanist December 2, 2024 10:56
@armanist armanist requested a review from Arno2005 December 2, 2024 12:02
@armanist armanist merged commit 391d5f5 into quantum-php:master Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants