- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2016
07:07 AM
04-14-2016
07:07 AM
Problems with Cache clearing
Since I switched from Apache to nginx I have cache problems.
The css files don't get the new version while flushing the cache.
1. File owner is nginx:nginx
chown -R nginx:nginx .
2. Flushing the cache
cd /var/www/magento/bin rm -rf /var/www/magento/pub/static/* rm -rf /var/www/magento/var/view_preprocessed rm -rf /var/www/magento/var/generation rm -rf /var/www/magento/var/cache rm -rf /var/www/magento/var/page_cache php magento cache:flush php magento setup:static-content:deploy
Could someone find my mistake? I would appreciate any help =)
Edit: It is a permission problem. Does someone know the right file owner with nginx + php-fpm on AWS Linux?
Labels:
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2016
11:09 PM
04-14-2016
11:09 PM
Re: Problems with Cache clearing
Is the new static content generated by Magento?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2016
05:38 AM
04-15-2016
05:38 AM
Re: Problems with Cache clearing
The commands are working.
The Cache clearing works with the file system owner "apache". (Iam using AWS Linux).
But I don't think it is the right file system owner with nginx?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2016
04:38 AM
04-16-2016
04:38 AM
Re: Problems with Cache clearing
How to check whether the static content is actually generated? https://mage2.pro/t/1269