We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33996
    • 20 Posts
    I'm considering to use the opcache mecanism of php7 to speed up my website...

    The opcache.validate_timestamps php directive may be set to 0 for 'production' environnement, and the opcache mecanism would not reload any php files if they changed...
    Well no problem except perhaps for the modx cache mecanism?
    So, I was wondering if setting it to 0 in order to speed up the website was a good idea? Is there some kind of reset made by modx on the opcache?

    Or do I have to implement an opcache_reset() in a plugin when the modx cache files change or ?...
    perhaps, it does not matter!?

    Does any of you have an experience of using opcache with modx and the correct settings to use?
    Thanks for your help...

    This question has been answered by theuros. See the first response.

    • discuss.answer
      • 29796
      • 91 Posts
      We have opcache on our server and modx works without problems. No cache conflicts or something similar. The only issues we had is while installing modx. You need to turn opcache off in htaccess inside modx setup folder to avoid weird problems.
        • 33996
        • 20 Posts
        Thanks to share your experience...
        and good to know! smiley