-
Notifications
You must be signed in to change notification settings - Fork 220
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
Cache Not Working Along with Observer #171
Comments
Hi @robinhoo1973, I'm out of the country at the moment, I will take a look. In the mean while, can you paste the code for your observer here as well? Thanks! |
Yes, I just updated my issue report with the observer code included. Thanks for your prompt response. |
Thanks! I will have to create a test for observers. Give me a few weeks. If you would like to take a stab at submitting a PR with a new unit test or even an update to the functionality, that would be great! :) |
Take your time and enjoy your trip, it's not urgent case. :) |
@robinhoo1973 I created a test for observers and do not see an issue with using observers. It works as expected. Please provide the complete query that you are running. |
I'm closing this for now due to inactivity. Please feel free to reopen with additional information if you still have this issue. |
Describe the bug
As the Model Article content field is stored the rich text with base64 encoded string, and an observer was created for encoding & decoding while saving and reading. It works fine until the trait mode Cachable involved in the Article model. And when it removed from the model, everything returned ok.
Eloquent Query
Please provide the complete eloquent query that caused the bug, for example:
Observer
/app/Observers/ArticleObserver.php
/app/Providers/ArticleModelServiceProvider.php
Stack Trace
The full stack trace from your log file.
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: