Limenius / ReactBundle

Client and Server-side React.js rendering in a Symfony Bundle
MIT License
390 stars 53 forks source link

Disabling Cache does not work #35

Open gempir opened 6 years ago

gempir commented 6 years ago

I'm using phpexecjs together with v8js and disabling the cache of this bundle does not work.

This is my symfony 4 config for dev

limenius_react:
    default_rendering: "both"
    serverside_rendering:
        mode: "phpexecjs"
        cache:
            enabled: false

For prod it's just

limenius_react:
    default_rendering: "both"
    serverside_rendering:
        mode: "phpexecjs"
        cache:
            enabled: true

HTML gets heavily cached for some reason and everytime I change React components i have to delete the symfony cache (which is where this bundles caches aswell) and then it works.

nacmartin commented 5 years ago

It is difficult for me to explore this since I am not using v8js atm because it became very hard to compile and get the cache working :(. So if someone has a solution you are more than welcome to share it.