Skip to content

Bug: Cache does not respect subdomain #6746

Description

@c4user

PHP Version

7.4

CodeIgniter4 Version

4.2.7

CodeIgniter4 Installation Method

Manual (zip or tar.gz)

Which operating systems have you tested for this bug?

Windows, Linux

Which server did you use?

apache

Database

MySQL

What happened?

Cache always creates a filename (key) using the hostname. For this reason, cache does not work when using a route with limit a subdomain. For example, when the cache is enabled, it doesn't matter whether it is stored for xxx.domain.com or yyy.domain.com. It shows the same content in both addresses.

Steps to Reproduce

Expected Output

It is expected to produce content based on subdomains.

Cache must be compatible with subdomains.

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions