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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

WP development on LAMP app vs. caching

Scheduled Pinned Locked Moved Solved LAMP
wordpresslampcache
7 Posts 3 Posters 278 Views
    • 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to msbt on last edited by girish
    #0

    @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
  • jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    replied to msbt 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
  • M Offline
    M Offline
    msbt App Dev
    replied to jdaviescoates 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to msbt 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
  • M Offline
    M Offline
    msbt App Dev
    replied to girish 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to msbt 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
  • M Offline
    M Offline
    msbt App Dev
    replied to girish 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

  • Login

  • Don't have an account? Register

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