Skip to content

Conversation

rubencm
Copy link

@rubencm rubencm commented Dec 25, 2024

No description provided.

@iMattPro iMattPro closed this Dec 26, 2024
@iMattPro iMattPro reopened this Dec 26, 2024
@rubencm rubencm closed this Dec 26, 2024
@rubencm rubencm reopened this Dec 26, 2024
@rubencm rubencm force-pushed the storage branch 3 times, most recently from 8c7b872 to 5d35d50 Compare December 26, 2024 21:06
@rubencm rubencm force-pushed the storage branch 2 times, most recently from 078bfd4 to 050c175 Compare December 26, 2024 23:37
continue;
}

$file_tracker->track_file('phpbb_ads', $file, filesize($dir . '/' . $file));
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes me wonder if the $file_tracker class should have track_files and untrack_files methods for handling multiple entries in 1 query?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, it can be updated to support more than one file.
I add it to the todo list

Copy link
Contributor

Choose a reason for hiding this comment

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

Great! (Will be a lot less queries)

phpbb_ads_storage_banner:
path: /ads_download/{file}
defaults:
_controller: phpbb.ads.controller.banner:handle
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll probably want to add stateless: true here eventually, re: https://github.com/phpbb/phpbb/compare/master...marc1706:phpbb:feature/stateless_sessions?expand=1

Copy link
Author

Choose a reason for hiding this comment

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

Well, this can be done in the future, there is not even a pull request for this and can change in the future

@iMattPro iMattPro deleted the branch phpbb-extensions:develop April 11, 2025 13:57
@iMattPro iMattPro closed this Apr 11, 2025
@iMattPro iMattPro reopened this Apr 11, 2025
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.

2 participants