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

Fix asset not being created properly when Stache watcher is disabled #29

Conversation

duncanmcclean
Copy link
Owner

This pull request fixes #28 by creating an 'Asset' instance when a file is uploaded via the Guest Entries addon.

If you have the Stache watcher disabled and do a file upload, the asset would not be visible in the Control Panel until you refresh the Stache as Statamic doesn't know the asset was created.

When you have the Stache watcher enabled, it watches for files being created and so it adds the Asset to the Stache.

@duncanmcclean duncanmcclean merged commit 1f4ae8b into main Oct 3, 2022
@duncanmcclean duncanmcclean deleted the bugfix/asset-not-being-created-when-stache-watcher-is-disabled branch October 3, 2022 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redis cache not work with file upload
1 participant