- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 311
Add support for kernel.cache_warmer #611
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
Comments
This also means it cannot be used on platforms like Google App Engine's Standard PHP environment where writes to the local filesystem are not allowed. Would really like a warmup option for my Entity classes so I can use JMS Serializer. |
And what should be a strategy to do it?
Doctrine works on entites, twig on templates, but the serializer is able to
serializer virtually "any" class in the project.
What about "warming up" all the classes in specific folders? Can be a
solution? Better ideas?
…On 15 Nov 2017 17:18, "Paul Dugas" ***@***.***> wrote:
This also means it cannot be used on platforms like Google App Engine's
Standard PHP environment where writes to the local filesystem are not
allowed. Would *really* like a warmup option for my Entity classes so I
can use JMS Serializer.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#611 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAvaJ8V45tLPrTkJyxvUZUInr2VQghFdks5s2w7UgaJpZM4QW1JD>
.
|
I did two things to make it work. First, I commented out the is_dir() and is_writeable() checks in JMS' Second, I created my own CacheWarmer to generate the cache files for my entities.
Now I can |
More generically, I think a way to list the classes that should be "warmed" makes sense. Maybe a way to specify classes in a namespace or just EM entities. The |
Oh, and making the list of classes to warm empty by default would make the addition of a custom CacheWarmer to the bundle backwards compatible. |
#615 is the WIP PR to solve the issue |
Version: latest (2.2.0)
Right now we have
bin/console cache:warmup
in our CD pipeline. Unfortunately,jms_serializer
folder remains empty (unlikedoctrine
andtwig
). This causes performance hit on the first request that uses the serializer.This is similar to #415 however this is about cache warmup instead of clearing
The text was updated successfully, but these errors were encountered: