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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. WP development on LAMP app vs. caching

WP development on LAMP app vs. caching

Scheduled Pinned Locked Moved Solved LAMP
wordpresslampcache
7 Posts 3 Posters 1.3k Views 3 Watching
  • 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 Offline
    M Offline
    msbt
    App Dev
    wrote on last edited by msbt
    #1

    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?

    jdaviescoatesJ girishG 2 Replies Last reply
    0
    • M 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?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by girish
      #4

      @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
      1
      • M 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?

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #2

        @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
        0
        • jdaviescoatesJ jdaviescoates

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

          M Offline
          M Offline
          msbt
          App Dev
          wrote on last edited by
          #3

          @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
          2
          • M 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?

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by girish
            #4

            @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
            1
            • girishG girish moved this topic from Support on
            • girishG 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 Offline
              M Offline
              msbt
              App Dev
              wrote on last edited by msbt
              #5

              thanks, I'll give it a go!

              edit: already looking good, appreciate it!

              girishG 1 Reply Last reply
              0
              • girishG girish marked this topic as a question on
              • girishG girish has marked this topic as solved on
              • M msbt

                thanks, I'll give it a go!

                edit: already looking good, appreciate it!

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

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

                M 1 Reply Last reply
                0
                • girishG girish

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

                  M Offline
                  M Offline
                  msbt
                  App Dev
                  wrote on last edited by
                  #7

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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search