2017-01-02 4 views
0

のために無効にすることはできません、私はまだDrupalの(設定/開発/パフォーマンス)に手動でキャッシュをクリアする必要があります:https://www.drupal.org/node/2598914のDrupal 8キャッシュが開発

私は続きますステップの見出しの下に表示ローカル開発の設定を有効にする

私はMAMPを使用し、MAMP設定でキャッシュを無効にします。

答えて

0

問題ました私のsites/development.services.ymlファイルにあります。 parameters:は2回定義されました。ファイルは次のようになります。

# Local development services. 
# 
# To activate this feature, follow the instructions at the top of the 
# 'example.settings.local.php' file, which sits next to this file. 
services: 
    cache.backend.null: 
    class: Drupal\Core\Cache\NullBackendFactory 
parameters: 
    twig.config: 
    debug: true 
    auto_reload: true 
    cache: false 
0

は 'サービス' の下で、あなたのdevelopment.services.ymlに以下を追加してください:

cache.backend.memory: 
class: Drupal\Core\Cache\MemoryBackendFactory 

とあなたのsettings.local.phpにこれらの行を追加します。

$config['system.performance']['css']['gzip'] = FALSE; 
$config['system.performance']['js']['gzip'] = FALSE; 
$config['system.performance']['response']['gzip'] = FALSE; 
+0

私はDrupalで手動でキャッシングした後の変更のみを表示します。私development.services.ymlファイルは今、この権利のようになります。 「パラメータ: http.response.debug_cacheability_headers:真 サービス: cache.backend.null: クラス:Drupalの\コア\キャッシュ\ NullBackendFactory cache.backendを。メモリ: クラス:Drupalの\コア\キャッシュ\ MemoryBackendFactory パラメータ: twig.config: デバッグ:真 auto_reload:真 キャッシュ:false」を –

+0

あなたはsettings.local.phpが正しく含まれていますか?ダイスを置こうとする。テスト目的でファイル内の何かを検索します。 – Elendas