Refactor: Honour page reload timer when live updates disabled#2087
Conversation
WalkthroughThe change updates a condition in the page layout logic used for reloading. Previously, the logic required both that the live update setting was not "no" and that the page load value was greater than 0. With this update, only the page load value is checked. No public or exported entities were altered. Changes
Sequence Diagram(s)sequenceDiagram
participant PL as Page Layout
participant JS as JavaScript Timer
PL->>PL: Check: Is $myPage['Load'] > 0?
alt Condition True
PL->>JS: Set reload timer
else Condition False
PL->>PL: Skip timer setup
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit