Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependencies shown in Query Monitor #312

Open
Zodiac1978 opened this issue Nov 13, 2024 · 1 comment
Open

Missing dependencies shown in Query Monitor #312

Zodiac1978 opened this issue Nov 13, 2024 · 1 comment

Comments

@Zodiac1978
Copy link
Member

Query Monitor is showing missing dependencies for styles and scripts with the handle cachify-admin-bar-flush:
Bildschirmfoto 2024-11-13 um 16 49 04

The link to the source is showing the correct file content.

My install is in a subfolder. Maybe this is a problem here? Or sharing the same handle for style and script is?

@stklcode
Copy link
Contributor

stklcode commented Nov 13, 2024

I'm unable to reproduce this behavior.

Started a WordPress 6.7.0 test site under /wp/ with Cachify 2.4.0 and Query Monitor

My HTML markup shows both resources as expected

<link rel='stylesheet' id='cachify-admin-bar-flush-css' href='https://wp2.test/wp/wp-content/plugins/cachify/css/admin-bar-flush.min.css?ver=1729007528' media='all' />

<script src="https://wp2.test/wp/wp-content/plugins/cachify/js/admin-bar-flush.min.js?ver=1729007528" id="cachify-admin-bar-flush-js"></script>

and Query Monitor is happy, too. (same for the JS)

cachify_312_3

And neither script nor stylesheet do have any dependencies.

Does the "flush cache" button look OK?

If I block access through the web server (returning 404), the button styling is broken, but Query Monitor still happy.
cachify_312_2

And if I remove the file itself, there's an obvious PHP error determining the file time (seeing this, we should probably use a fixed version string here instead 🤔)

cachify_312_1

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

No branches or pull requests

2 participants