Skip to content

Redis cache issue with CSS/JS assets generated by Spectra plugin #66

@danmaby

Description

@danmaby

Hey team, I see an issue with CSS and JS files generated by the Spectra plugin. The plugin has an option in its "Asset Generation" setting to generate external CSS/JS files rather than generating inline. Turning this setting on produces the following URLs for assets:

/wp-content/uploads/uag-plugin/assets/5000/uag-css-XXXXXX-XXXXXX.css

When Redis cache is enabled on the server and the above setting is turned on, CSS/JS assets are not loaded.

To reproduce:

  1. Enable File Generation in Spectra "Asset Generation" setting
  2. Click Asset Regeneration in Spectra "Asset Generation" setting
  3. Purge all SpinupWP cache
  4. View a page with a Spectra block in incognito/private - broken CSS/JS

To temporarily overcome this, I have disabled Redis Caching on the server

define( 'WP_REDIS_DISABLED', true );

It appears to be simial to this issue that was generated by Elementor.

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