Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved WP development on LAMP app vs. caching

    LAMP
    wordpress lamp cache
    3
    7
    177
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      msbt App Dev last edited by msbt

      Hi there! Quick question about the LAMP app: I'm using that to develop my WordPress sites, local template files get sent to the server after being updated and I would expect to see the changes immediately after a refresh (yes, also tried hard refresh and different browsers), but sometimes it takes up to a minute or maybe even longer until they are actually live. Is there some aggressive caching going on that could be disabled until the site is ready to be published? I also checked with the filemanager, the changes are on the server, but the rendered files are still the old ones.

      Any suggestions on how to debug that?

      jdaviescoates girish 2 Replies Last reply Reply Quote 0
      • girish
        girish Staff @msbt last edited by girish

        @msbt This is because of the opcache. If you disable it in php.ini, I think you will see the changes instantly.

        I think:

        [opcache]
        opcache.enable=0
        
        M 1 Reply Last reply Reply Quote 1
        • jdaviescoates
          jdaviescoates @msbt last edited by

          @msbt just out of interest, why are you using the LAMP app instead of just using the WordPress Developer app?

          I use Cloudron with Gandi & Hetzner

          M 1 Reply Last reply Reply Quote 0
          • M
            msbt App Dev @jdaviescoates last edited by

            @jdaviescoates no particular reason, it just felt more right because only half of them will stay on a Cloudron environment, the rest will eventually migrate to some other provider and I wanted to keep it as vanilla as possible. It's also easier to change PHP versions to see if things are still working afterwards.

            1 Reply Last reply Reply Quote 2
            • girish
              girish Staff @msbt last edited by girish

              @msbt This is because of the opcache. If you disable it in php.ini, I think you will see the changes instantly.

              I think:

              [opcache]
              opcache.enable=0
              
              M 1 Reply Last reply Reply Quote 1
              • Moved from Support by  girish girish 
              • M
                msbt App Dev @girish last edited by msbt

                thanks, I'll give it a go!

                edit: already looking good, appreciate it!

                girish 1 Reply Last reply Reply Quote 0
                • Topic has been marked as a question  girish girish 
                • Topic has been marked as solved  girish girish 
                • girish
                  girish Staff @msbt last edited by

                  @msbt Cool, as a heads up, you probably want to enable it back when in "production" mode.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    msbt App Dev @girish last edited by

                    @girish thanks, I usually fire up a fresh one and use duplicator to migrate it to the live domain 😉

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB