Skip to content

Commit

Permalink
(refactor) Rename ::getPageProperties()
Browse files Browse the repository at this point in the history
This method no longer gets the page properties, it just optionally
outputs the developer meta, so let's rename it accordingly.
  • Loading branch information
RobjS committed Feb 3, 2025
1 parent 8dd3f16 commit 57545d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SendHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public function setCacheHeader(): void
$this->developerMode = get_field('cache_control_plugin_developer_mode', 'option') ?? false;
}

//Get our page properties that we will be using to figure out our cache settings,
$this->getPageProperties();
$this->outputDeveloperMeta();

// if we are logged in, or on the front page we don't need to worry about configuring things further
if ($this->page->isLoggedInUser() || $this->page->requiresPassword() || $this->page->isPreviewPage()) {
Expand Down Expand Up @@ -100,7 +99,7 @@ public function setCacheHeader(): void
*
* @return void
*/
protected function getPageProperties(): void
protected function outputDeveloperMeta(): void
{
// If we are in developer mode we want to see what the current page is setting.
if ($this->developerMode) {
Expand Down

0 comments on commit 57545d4

Please # to comment.