Skip to content

Litespeed caching prevented saving settings #150

@devjaiba

Description

@devjaiba

Describe the bug
When using Litespeed, the plugin settings were not being saved correctly due to caching.

Steps to reproduce

  • Open the plugin settings in WordPress.
  • Make changes and save.
  • Observe that the changes are not saved when Litespeed caching is active.

Workaround / Fix Applied
Added the following to Litespeed exclusions:

Do Not Cache URIs:
/wp-json/pressidium-cookie-consent/v1/settings
/wp-json/pressidium-cookie-consent/v1/*

Do Not Cache Query Strings:
rest_route=/pressidium-cookie-consent/v1/settings

After applying these exclusions, the settings could be saved as expected.

Environment:
Browser: Chrome
Plugin version: 1.8.0

Expected behavior
Settings should be saved without having to manually add cache exclusions in Litespeed.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestroadmapFeature request or enhancement in our roadmap

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions