Skip to content

object-cache.php conflicts with third party plugins #612

@jamesozzie

Description

@jamesozzie

Bug Description

As highlighted by one user in the support forums, there is a conflict between the Performance Lab generated object-cache.php file and the same file generated by third party plugins.

The expected behavior with an additional object-cache.php file generated by another plugin (if the PL plugin is installed first):

  1. The PL plugin renames the third party plugins object-cache.php to object-cache-plst-orig.php
  2. The PL plugin then loads it's own file, while also loading the object-cache-plst-orig.php file

Steps to reproduce

  1. Install the PL plugin
  2. Check that that object-cache.php file exists within the sites wp-content directory
  3. Install and active W3 Total Cache
  4. Within the W3 Total cache settings enable Object Caching (Performance > General > Object Cache > Object Cache > Enable)
  5. After enabling object caching within the W3 Total Cache settings a notice will appear recognising the conflict. You can then choose to allow W3 Total Cache to remove the PL inserted object-cache.php file. If doing so, the PL file is removed.

The same issue can be found if using LiteSpeed Cache and applying Object Caching (ListeSpeed Cache > Cache > Object > Object Cache > ON). For this plugin there is no conflict highlighted, instead the PL file is removed (recording of experience)

eF0WdP12Tn.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssues for the overall performance plugin infrastructureNeeds DevAnything that requires development (e.g. a pull request)[Type] BugAn existing feature is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions