Skip to main content

ea-nginx reverse proxy and clearing cache on triggered reload

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  After you updated the conf.json file, did you run this command?

    /scripts/ea-nginx conf --all

    That would save the changes and reload the service.

    However, I'm not sure any service will let you use cache after the service has been reloaded, which will happen frequently on a cPanel server.  Picture a MySQL database, for example - if you have cached tables, and stop the service, that table cache gets cleared - nginx is no different.  Any action in cPanel or WHM that changes user data and triggers an Apache/nginx restart will reload the server and dump the cache.

    Since that's the case, configuring the time to be 128 days is completely possible, but other mechanisms will likely clear that cache sooner.

    0
  • angel.panayotov

    Thanks for your reply. I understand that but in our case we are aiming of keeping the cache forever or at least as long as its possible.
    Do you think if its achievable to disable the cache dump on reload/restart or if its possible to keep the cache forever.
    Thanks again.

    0
  • cPRex Jurassic Moderator

    With the cPanel implementation of this, no, I don't think either of those options are going to be possible. You could always submit a feature request at features.cpanel.net and I'll make sure the correct team reviews that request!

    0

Please sign in to leave a comment.