Skip to content

Placeholder image cache is never used due to incorrect isset($go) check #210

Description

@mlyndaker

The protected image placeholder is always generated on each request instead of using the previously cached file.

In patreon_protect.php, the file_exists check for the previously generated file has additional call to isset($go). This will always return false, forcing the image to be regenerated each time rather than reusing the existing cached file.

https://github.com/Patreon/patreon-wordpress/blob/master/classes/patreon_protect.php#L310

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions