Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

grestock's avatar

Caching views

I have problems with caching.

Making changes to blade files is not reflected on the server; only this works for me :

php artisan view:clear

I tried different solutions (switched off opcache, changed values, updated composer, etc.) nothing helped.

Most of the tipps are rather old, but this one:

Changes in code not being reflected #84

Any idea?

0 likes
5 replies
Snapey's avatar

bit puzzled what you mean by 'reflected on the server' . What is your deployment process?

Are you working in a different timezone to your server?

grestock's avatar

@DIEGOAURINO - Thanks, diegoaurino!

that's what I thought also, but the permission is ok. It is an Ubuntu Server/ Apache2. The Owner and group are set to www-data:www-data Permisssion is 775 recursiv (I tried 777 on storage and below, but didn't help)

grestock's avatar
grestock
OP
Best Answer
Level 10

@SNAPEY - Thanks, Snapey!

I use phpStorm on a local windows machine with automatic ftp upload on change the apache2-server. (both machines in my local network ;-))

But you set me on the right track: When I edit a blade-file with notepad and upload it with ftp, the view cache is updated.

When I edit a blade-file with phpStorm and phpStorm uploads the file, the view cache is not updated (but the change is copied to the server).

And finally I found the error in phpStorm settings: Deployment/Options/"Preserve files timestamps" was set.

Unset this and caching works like a charm ...

Snapey's avatar

That would explain it. The view is only re-cached if the blade file is newer than the cached version. This is why I was thinking it might be timezone related.

Glad you got it sorted. Mark it answered please.

Please or to participate in this conversation.