-
Notifications
You must be signed in to change notification settings - Fork 642
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
craft clear-caches/cp-resources
erases my entire web/assets directory (yikes!)
#3637
Comments
craft clear-caches/cp-resources
erases my entire web/assets directory (!)craft clear-caches/cp-resources
erases my entire web/assets directory (yikes!)
Thanks for reporting this. Believe it's because your |
Thanks Brandon. I think you are right. I don't set my resourceBasePath anywhere in my code, but I do see that it seems to default to |
Right, and Craft can be a little unpredictable when resolving |
Gotcha. Thanks again for addressing this so quickly.
|
Description
I added
craft clear-caches/all
to my deploy script and discovered that all my site assets got wiped out. After some investigation, I discovered that the offending command iscraft clear-caches/cp-resources
. I can clear the Control Panel resources from the Utilities admin menu without issue; however, if I run the CLI command to clear the Control Panel resources, my web/assets folder is completely emptied.Steps to reproduce
web/assets
directory - verify contents existcraft clear-caches/all
orcraft clear-caches/cp-resources
web/assets
directory - note that all contents are now goneAdditional info
GeoMate - v1.0.2
Imager - v2.1.4 <-- all contents of my web/assets folder came from this plugin--could it be the cause?
Redactor - 2.1.7
Smart Map - 3.2.1
Videos - 2.0.4
The text was updated successfully, but these errors were encountered: